Skip to main content
Glama
agent-mesh

agent-mesh

Official
by UllrAI

mesh_invoke

Submit tasks asynchronously to target agent methods or continue an existing session, then use the returned job ID to check status and retrieve results or clarifications.

Instructions

异步提交新任务或继续指定会话。按目标方法的输入约定填写 params。

用户需要结果或澄清时,用本次返回的 job_id 调用 mesh_job_status。

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": {
      "target": "<target>",
      "method": "<method>",
      "params": "<params>"
    },
    "name": "mesh_invoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYes
paramsYes
targetYes
session_idNo
execution_timeout_sNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It does disclose the key trait that execution is asynchronous and results must be fetched via job_id, which is genuinely useful. However, it says nothing about failure handling, what session_id continuation preserves, what execution_timeout_s does when it elapses, or any authorization requirements, leaving significant behavioral gaps for a mutation-style dispatcher.

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?

Three short sentences, front-loaded with the core action and followed by the follow-up routing. No filler. The middle sentence about the target method's input contract is vague, but it earns its place by telling the agent params is externally defined.

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?

For a dispatcher with nested params, 0% schema coverage, no annotations, and five parameters, the description is thin. The output schema covers job_id, so return values need no explanation, and the async-to-polling flow is well covered. Yet the crux of the tool, what target and method values are valid and what params must contain, is entirely unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters, so the description must compensate and largely does not. 'Continue the specified session' loosely explains session_id, and 'fill params per the target method's input contract' defers params semantics to an external contract, but target, method, execution_timeout_s, and the shape of params are left undefined.

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?

States a specific verb and resource: asynchronously submit a new task, or continue an existing session. The async submission model and the job_id follow-up flow make the tool's role identifiable and separate it from mesh_job_status. What remains opaque is what 'target' and 'method' refer to, so an agent cannot fully picture the operation without other context.

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

Usage Guidelines3/5

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

Gives one explicit routing rule: when the user needs results or clarification, poll mesh_job_status with the returned job_id. It does not say when to submit a new task versus continue a session, nor how this differs from siblings such as mesh_inspect or mesh_jobs. Usage is implied by the async-submission framing rather than spelled out.

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