Skip to main content
Glama

Test an AI agent

test_agent

Ask an AI agent a question as a customer would, in a private preview no customer sees, whether or not it is deployed, and wait (up to about 25 seconds) for its answer. It never deploys the agent. With pending: true, read the answer with list_messages after a few seconds; don't ask again. When stillLearning is set, Aide is still reading the website and found nothing yet: tell the user, ask them meanwhile for the facts customers ask most and save each with add_knowledge_article, and test again after the minutes it gives. When sources is empty otherwise, the agent found nothing to answer from: add it with add_knowledge_article and test again. Show the user the reply; ask follow-ups with continue_agent_test.

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": {
      "agentId": "<agentId>",
      "text": "<text>"
    },
    "name": "test_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe customer's message.
agentIdYesThe agent id, from list_agents.
countryNoTest as a shopper on that country's storefront (two letters, "GB"), for a Shopify store whose markets sell different products: the agent offers only that market's. Kept for the whole test.
customerNoTest as an identified shopper, as the widget would identify them: `{ name, email, attributes }`.

Output Schema

NameRequiredDescriptionDefault
replyYes
pendingYes
sourcesYes
handedOverYes
stillLearningYes
conversationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Test as a shopper on that country's storefront (two letters, \"GB\"), for a Shopify store whose markets sell different products: the agent offers only that market's. Kept for the whole test.",
      +  "pattern": "^[A-Z]{2}$",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / customer
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Test as an identified shopper, as the widget would identify them: `{ name, email, attributes }`.",
      +  "properties": {
      +    "attributes": {
      +      "additionalProperties": {
      +        "maxLength": 1000,
      +        "type": "string"
      +      },
      +      "maxProperties": 50,
      +      "type": "object"
      +    },
      +    "email": {
      +      "format": "email",
      +      "maxLength": 254,
      +      "type": "string"
      +    },
      +    "name": {
      +      "maxLength": 120,
      +      "type": "string"
      +    }
      +  },
      +  "required": [],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • addedOutput schema / properties / stillLearning
      Added value: +{
      +  "properties": {
      +    "minutesLeft": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "pagesOutOf": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "pagesSoFar": {
      +      "type": "integer"
      +    },
      +    "site": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "tellUser": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "site",
      +    "pagesSoFar",
      +    "pagesOutOf",
      +    "minutesLeft",
      +    "tellUser"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "conversationId",
      -  "reply",
      -  "handedOver",
      -  "sources",
      -  "pending"
      -]New value: +[
      +  "conversationId",
      +  "reply",
      +  "handedOver",
      +  "sources",
      +  "pending",
      +  "stillLearning"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "conversationId": {
      +      "type": "string"
      +    },
      +    "handedOver": {
      +      "type": "boolean"
      +    },
      +    "pending": {
      +      "type": "boolean"
      +    },
      +    "reply": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sources": {
      +      "items": {
      +        "properties": {
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "title",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "conversationId",
      +    "reply",
      +    "handedOver",
      +    "sources",
      +    "pending"
      +  ],
      +  "type": "object"
      +}
  5. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false/destructiveHint=false/openWorldHint=false, but the description adds what the agent actually needs: nothing is deployed, no customer ever sees the test, and the call blocks for roughly 25 seconds before returning. It also discloses the non-obvious stillLearning / empty-sources response states and what to do about them, which structured fields alone would not convey.

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?

Dense but front-loaded: purpose and blocking behavior come first, then the response-state handling. Some sentences are long run-ons with embedded clauses ("whether or not it is deployed") that slow parsing, though virtually every sentence carries actionable information.

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

Completeness5/5

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

For a tool with an output schema, a nested customer object, and multiple exceptional response states, the definition covers what an agent must know: it is a safe preview, it blocks, and each terminal state has a prescribed next action with a named sibling tool. Nothing essential to correct invocation is missing.

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

Parameters4/5

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

Schema coverage is 100% and country/customer/text are already well documented in the schema, so the baseline is 3. The description adds marginal meaning by framing the call as a customer-perspective simulation, but it does not clarify parameter interaction; it also references `pending`, `stillLearning` and `sources`, which read as response fields rather than inputs and could momentarily confuse an agent about whether `pending` is passable.

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 an AI agent a question") plus the exact scope: private preview no customer sees, works whether or not deployed, waits ~25s. This is clearly distinguishable from continue_agent_test (follow-ups) and list_messages (reading pending results).

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

Usage Guidelines5/5

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

Gives explicit routing for every branch: with pending:true read via list_messages and don't re-ask; when stillLearning is set, inform the user, gather facts with add_knowledge_article, retest later; when sources is empty, add knowledge then retest; use continue_agent_test for follow-ups. When-to-use and alternatives are both named.

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.