Skip to main content
Glama

invoke_agent

Send a prompt to a named fleet agent and return its reply, with optional session keys for multi-turn conversations.

Instructions

Send a prompt to a fleet agent and return its reply. Streams internally; emits progress notifications if client passes _meta.progressToken. Pass session_key from start_session for multi-turn conversations.

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": {
      "name": "<name>",
      "prompt": "<prompt>"
    },
    "name": "invoke_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAgent name (e.g. 'researcher')
promptYesUser message to send
timeout_msNoOptional timeout in milliseconds (default 60000)
session_keyNoOptional session key from start_session for multi-turn. When absent, call is stateless.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does add genuinely non-obvious behavior: the call "streams internally" and emits progress notifications when "_meta.progressToken" is passed — a mechanism entirely absent from the input schema. It does not cover whether invoking an agent is costly, long-running, or has side effects on the remote agent's state, nor error/timeout behavior beyond the schema's timeout_ms.

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 short sentences, each carrying distinct information: core action, streaming/notification behavior, and session threading. It is front-loaded with the primary purpose and contains no filler or restatement of the title.

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?

For a 4-parameter tool with no annotations and no output schema, the definition covers purpose, the multi-turn flow, and the progress mechanism well enough to call it correctly. The gap is the return contract — "return its reply" says nothing about the reply's shape, what happens on timeout, or how streamed progress relates to the final reply, which matters more here because no output schema exists.

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 name, prompt, timeout_ms, and session_key are already documented, making 3 the baseline. The description adds only marginal value beyond that, mostly reinforcing the start_session linkage for session_key and the stateless-when-absent behavior already stated in the schema. The undocumented _meta.progressToken is mentioned but only in the context of notifications, not as a call parameter.

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 concrete verb and resource: "Send a prompt to a fleet agent and return its reply." That is unambiguous about the operation and its round-trip nature. It stops short of 5 because it never differentiates itself from the sibling invoke_hermes, leaving the agent to guess which invoker applies to which agent type.

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?

It gives real operational context: "Pass session_key from start_session for multi-turn conversations," which tells the agent how to chain this tool with a sibling. It also states the fallback behavior implicitly (stateless when absent, per schema). It lacks any explicit when-not-to-use or a comparison against invoke_hermes, so it is clear context without exclusions.

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