Skip to main content
Glama

Prompt agent

prompt_agent
Destructive

Send a prompt to an AI agent in a space and return its text reply (one-shot). Get agent ids from list_agents. Runs on the agent's configured model and consumes AI credits. To review past agent chats (e.g. for QA), use list_conversations + get_conversation.

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": {
      "spaceId": "<spaceId>",
      "agentId": "<agentId>",
      "prompt": "<prompt>"
    },
    "name": "prompt_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesUser message to send to the agent
agentIdYesAgent ID from `list_agents`
spaceIdYesSpace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses two behaviors an agent could not infer: execution runs on the agent's configured model and each call consumes AI credits, plus the one-shot nature of the call. It does not explain the destructiveHint=true flag (what, if anything, is permanently altered) or latency/timeout behavior, so it stops short of full disclosure.

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?

Three compact sentences, each carrying distinct information: what it does, how to obtain the id and what it costs, and where to go instead for history. Front-loaded action statement with zero filler.

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 3-parameter tool with full schema coverage and no output schema, the definition covers purpose, prerequisite, cost side effect, return type, and the alternative path. Nothing an agent needs in order to call it correctly is missing.

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 spaceId, agentId and prompt are already documented inline, and the description only echoes the agentId provenance already present in the schema. It adds no format, constraint, or sizing guidance for the prompt text itself, so the baseline 3 applies.

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?

The first sentence states a specific verb (send), resource (prompt), target (AI agent in a space) and return type (text reply), plus the '(one-shot)' qualifier that separates it from multi-turn conversation tools. An agent can distinguish it from list_conversations/get_conversation without opening any schema.

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?

It gives a prerequisite ('Get agent ids from `list_agents`') and an explicit alternative with its selecting condition ('To review past agent chats (e.g. for QA), use `list_conversations` + `get_conversation`'). When-to-use and when-to-use-something-else are both stated rather than inferred.

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.