Contextual AI · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Endpoints /agents/{id}/query API

6 actions 6 updates phrasing extends openapi/contextual-ai-agents-id-query-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Contextual AI's API. It is a proposal applied on top of the contract, not a document Contextual AI publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/agents/{agent_id}/query/acl'].post
$.paths['/agents/{agent_id}/query'].post
$.paths['/agents/{agent_id}/query/{message_id}/retrieval/info'].get
$.paths['/agents/{agent_id}/feedback'].post
$.paths['/agents/{agent_id}/metrics'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Endpoints /agents/{id}/query API
  version: 1.0.0
extends: openapi/contextual-ai-agents-id-query-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-22'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/agents/{agent_id}/query/acl'].post
  update:
    x-apievangelist-phrasing:
      intent: Query an agent with an ACL path
      effect: write
      questions:
      - Can I query an agent through the /query/acl path and get its response?
      - Is there an ACL endpoint for agent queries?
      instructions:
      - text: Query agent {agent_id} through the /query/acl path with messages {messages}.
        slots:
          agent_id: path.agent_id
          messages: requestBody.messages
      - text: Send a /query/acl request to agent {agent_id} with {messages} and include retrieval content text {include_retrieval_content_text}.
        slots:
          agent_id: path.agent_id
          messages: requestBody.messages
          include_retrieval_content_text: query.include_retrieval_content_text
      method: generated
      generated: '2026-11-22'
- target: $.paths['/agents/{agent_id}/query'].post
  update:
    x-apievangelist-phrasing:
      intent: Query an agent
      effect: write
      questions:
      - How do I start a conversation with an agent and get its generated response?
      - Can I filter which documents an agent retrieves when I query it?
      instructions:
      - text: Query agent {agent_id} with messages {messages}.
        slots:
          agent_id: path.agent_id
          messages: requestBody.messages
      - text: Ask agent {agent_id} a question with {messages} using model {llm_model_id}.
        slots:
          agent_id: path.agent_id
          messages: requestBody.messages
          llm_model_id: requestBody.llm_model_id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/agents/{agent_id}/query/{message_id}/retrieval/info'].get
  update:
    x-apievangelist-phrasing:
      intent: Get retrieval metadata for a message
      effect: read
      questions:
      - Which documents did an agent use to answer a particular message?
      - Can I see the metadata of the content behind a generated response?
      instructions:
      - text: Get retrieval info for message {message_id} on agent {agent_id} for content {content_ids}.
        slots:
          message_id: path.message_id
          agent_id: path.agent_id
          content_ids: query.content_ids
      - text: Show the content metadata agent {agent_id} used to answer message {message_id}.
        slots:
          agent_id: path.agent_id
          message_id: path.message_id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/agents/{agent_id}/feedback'].post
  update:
    x-apievangelist-phrasing:
      intent: Give feedback on an agent's generation or retrieval
      effect: write
      questions:
      - How do I rate an agent's answer or the documents it retrieved?
      - Can I explain why I gave a particular feedback rating?
      instructions:
      - text: Give feedback {feedback} on message {message_id} of agent {agent_id}.
        slots:
          feedback: requestBody.feedback
          message_id: requestBody.message_id
          agent_id: path.agent_id
      - text: Rate retrieval {content_id} from agent {agent_id} as {feedback} with explanation {explanation}.
        slots:
          content_id: requestBody.content_id
          agent_id: path.agent_id
          feedback: requestBody.feedback
          explanation: requestBody.explanation
      method: generated
      generated: '2026-11-22'
- target: $.paths['/agents/{agent_id}/metrics'].get
  update:
    x-apievangelist-phrasing:
      intent: Get usage and feedback metrics for an agent
      effect: read
      questions:
      - How many queries has an agent handled and what feedback has it received?
      - Can I filter an agent's metrics by user or date range?
      instructions:
      - text: Get metrics for agent {agent_id}.
        slots:
          agent_id: path.agent_id
      - text: Show agent {agent_id}'s usage and feedback metrics for users {user_emails}.
        slots:
          agent_id: path.agent_id
          user_emails: query.user_emails
      method: generated
      generated: '2026-11-22'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/contextual-ai-agents-id-query-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.