Skip to main content
Glama

Query Business Agent

query_business_agent

Ask a registered business's AI advocate a question and get a citation-ready answer plus a referral link. The question and the business's public profile are processed by an AI provider, and the question and answer are recorded to operate the service. Do not enter sensitive personal, medical, payment, or authentication information. Use this for questions about one business's services, hours, policies, or fit.

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": {
      "slug": "<slug>",
      "query": "<query>"
    },
    "name": "query_business_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesBusiness slug identifier
queryYesThe visitor's question about this business
stageNoOptional buyer stage: browsing | comparing | committing
agent_idNoOptional self-asserted calling-agent id — used for logging/tuning only, never auth

Output Schema

NameRequiredDescriptionDefault
answerYesPlain-text answer grounded ONLY in the business's public profile; a fixed apology sentence when the model was unavailable or over budget
businessYesThe business's display name
referral_urlYesSigned, tracked link to the business's own website for the user to follow; null when the business lists no website
business_slugYesEcho of the slug that was queried

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / referral_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / referral_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "answer": {
      +      "description": "Plain-text answer grounded ONLY in the business's public profile; a fixed apology sentence when the model was unavailable or over budget",
      +      "type": "string"
      +    },
      +    "business": {
      +      "description": "The business's display name",
      +      "type": "string"
      +    },
      +    "business_slug": {
      +      "description": "Echo of the slug that was queried",
      +      "type": "string"
      +    },
      +    "referral_url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Signed, tracked link to the business's own website for the user to follow; null when the business lists no website"
      +    }
      +  },
      +  "required": [
      +    "answer",
      +    "referral_url",
      +    "business",
      +    "business_slug"
      +  ],
      +  "type": "object"
      +}
  3. Changed6 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional caller-asserted agent identifier (e.g. 'claude-desktop', 'cursor', 'gpt-agent'). Used to tune the response shape. May be overridden by the x-agent-identity header. Self-asserted only in v1 — not used for auth or rate limiting."New value: +"Optional self-asserted calling-agent id — used for logging/tuning only, never auth"
    • changedInput schema / properties / query / description
      Previous value: -"The user's question about this business"New value: +"The visitor's question about this business"
    • addedInput schema / properties / query / maxLength
      Added value: +2000
    • changedInput schema / properties / slug / description
      Previous value: -"The business slug identifier (e.g. 'joes-pizza-austin'). Use search_businesses first if you don't know the slug."New value: +"Business slug identifier"
    • changedInput schema / properties / stage / description
      Previous value: -"Optional buyer stage. 'browsing' (default) — exploring options. 'comparing' — weighing alternatives. 'committing' — ready to act. When omitted, the server infers from query verbs (e.g. 'book'/'reserve' → committing)."New value: +"Optional buyer stage: browsing | comparing | committing"
  4. Changed6 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional self-asserted calling-agent id — used for logging/tuning only, never auth"New value: +"Optional caller-asserted agent identifier (e.g. 'claude-desktop', 'cursor', 'gpt-agent'). Used to tune the response shape. May be overridden by the x-agent-identity header. Self-asserted only in v1 — not used for auth or rate limiting."
    • changedInput schema / properties / query / description
      Previous value: -"The visitor's question about this business"New value: +"The user's question about this business"
    • removedInput schema / properties / query / maxLength
      Removed value: -2000
    • changedInput schema / properties / slug / description
      Previous value: -"Business slug identifier"New value: +"The business slug identifier (e.g. 'joes-pizza-austin'). Use search_businesses first if you don't know the slug."
    • changedInput schema / properties / stage / description
      Previous value: -"Optional buyer stage: browsing | comparing | committing"New value: +"Optional buyer stage. 'browsing' (default) — exploring options. 'comparing' — weighing alternatives. 'committing' — ready to act. When omitted, the server infers from query verbs (e.g. 'book'/'reserve' → committing)."
  5. Changed6 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional caller-asserted agent identifier (e.g. 'claude-desktop', 'cursor', 'gpt-agent'). Used to tune the response shape. May be overridden by the x-agent-identity header. Self-asserted only in v1 — not used for auth or rate limiting."New value: +"Optional self-asserted calling-agent id — used for logging/tuning only, never auth"
    • changedInput schema / properties / query / description
      Previous value: -"The user's question about this business"New value: +"The visitor's question about this business"
    • addedInput schema / properties / query / maxLength
      Added value: +2000
    • changedInput schema / properties / slug / description
      Previous value: -"The business slug identifier (e.g. 'joes-pizza-austin'). Use search_businesses first if you don't know the slug."New value: +"Business slug identifier"
    • changedInput schema / properties / stage / description
      Previous value: -"Optional buyer stage. 'browsing' (default) — exploring options. 'comparing' — weighing alternatives. 'committing' — ready to act. When omitted, the server infers from query verbs (e.g. 'book'/'reserve' → committing)."New value: +"Optional buyer stage: browsing | comparing | committing"
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations say readOnlyHint=false and openWorldHint=true, but do not explain why a query is not read-only; the description fills that gap by disclosing that the question and public profile go to an AI provider and that the question and answer are recorded. The PII prohibition is concrete, actionable behavioral guidance an agent cannot infer from the structured fields.

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

Conciseness4/5

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

Front-loaded with the purpose and the return value, then privacy constraints. Three tight sentences with no filler, though the disclosure clause about processing and recording is slightly legalistic in phrasing.

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?

An output schema exists so return values need not be explained, and the description still summarizes them; privacy and data-handling behavior is covered. The only residual gap is routing guidance versus sibling tools for adjacent tasks like quotes or bookings.

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 slug, query, stage, and agent_id are already documented, and the description correctly does not restate them. It adds only indirect meaning (slug identifies the business whose public profile is sent), leaving the stage enum and agent_id semantics to the schema.

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

Purpose5/5

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

States a specific verb and resource -- ask a business's AI advocate a question -- and names the deliverables (a citation-ready answer plus a referral link). This is clearly distinct from transactional siblings such as search_businesses, get_quote, or request_service.

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

Usage Guidelines4/5

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

Gives explicit inclusion criteria: questions about one business's services, hours, policies, or fit. It also adds a clear exclusion on content (no sensitive personal, medical, payment, or auth data), but does not name which sibling to use instead for non-question tasks like booking or quoting.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources