Skip to main content
Glama

agents_invoke

Send a message to an agent to generate a response, optionally continuing a task or running asynchronously.

Instructions

Send a message to an agent (creates response)

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": {
      "agent_key": "<agent_key>",
      "message": "<message>"
    },
    "name": "agents_invoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesMessage text
task_idNoTask ID to continue
agent_keyYesAgent key
backgroundNoRun async
thread_jsonNoJSON: {id, tags}
identity_jsonNoJSON: {id, display_name, email}
metadata_jsonNoJSON for metadata
variables_jsonNoJSON for variables
memory_entity_idNoEntity ID for memory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations exist, so the description carries the full disclosure burden, yet it only hints at a side effect via "creates response." It says nothing about whether calls are synchronous, that the 'background' flag makes them async, how permissions or agent_key validation work, or what the returned response looks like.

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

Conciseness3/5

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

It is a single short clause with zero wasted words and is front-loaded with the action. However, the terseness borders on under-specification, and the vague parenthetical "(creates response)" is a weak substitute for real structure.

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

Completeness2/5

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

With nine parameters, no annotations, and no output schema, this is a complex invocation tool that needs more than six words. Nothing explains the async/background behavior, thread continuation, or the memory/identity JSON parameters that meaningfully change the call.

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 all nine parameters already have inline descriptions and the baseline is 3. The description adds no syntax, format, or interaction detail (e.g., thread_json vs task_id) beyond the schema.

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?

"Send a message to an agent" names a specific verb and resource, and the parenthetical "creates response" clarifies the side effect of producing a reply. It does not differentiate this tool from invoke-style siblings such as deployments_invoke or evals_invoke, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus the other *_invoke tools, nor any prerequisite or exclusion. The agent must infer selection entirely from the tool name.

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

Deploy Server

Other Tools