Skip to main content
Glama

inline_query

Query an inline bot and inspect returned result cards, sending your query and user ID only to a whitelisted bot owner.

Instructions

Query an inline bot and inspect returned result cards. The query text and your user id are sent to the bot's owner, so the bot must be a whitelisted destination (Send tier).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bot": "<bot>",
      "query": "<query>"
    },
    "name": "inline_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
botYesInline bot reference (canonical ID or `@bot_username`).
chatNoOptional chat context reference.
queryYesInline query text.
offsetNoOptional pagination offset returned by an earlier query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations (readOnlyHint=false, openWorldHint=true) do not explain that query text and the caller's user id leave the system to a third-party bot owner. The description surfaces that data egress and the whitelist requirement, which is meaningful behavior beyond the structured fields. It stops short of covering rate limits or the result-card shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, with the action front-loaded and the privacy/whitelist constraint immediately after. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Annotations and full schema coverage carry most of the load, and the description adds the non-obvious egress and whitelist constraints. Since there is no output schema, a short note on the returned result-card fields or pagination handling would close the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds only the fact that 'query' text is forwarded to the bot owner; 'bot', 'chat', and 'offset' get no extra meaning beyond their schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Query an inline bot') plus the outcome ('inspect returned result cards'), which clearly separates inspecting results from the sibling inline_query_send that actually sends one. It does not name that sibling explicitly, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'inspect' versus sending, and it states a real prerequisite (the bot must be a whitelisted Send-tier destination). However, it never explicitly says when to use this instead of inline_query_send, nor does it cover pagination expectations for 'offset'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.