Skip to main content
Glama

Inject run message

inject_run_message

Send a message into a running background job — picked up at its next round boundary.

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": {
      "run_id": "<run_id>",
      "content": "<content>"
    },
    "name": "inject_run_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description usefully explains *why* it is not idempotent — delivery happens asynchronously at the next round boundary. However it does not say what happens if run_id references a finished or nonexistent run, whether duplicates are possible, or whether the call returns an acknowledgement, leaving the error/return behavior undisclosed.

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?

A single sentence with the key delivery-timing constraint front-loaded and no filler. Every clause carries information the agent needs.

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

Completeness3/5

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

For a minimal two-parameter tool with annotations and no output schema this is close to sufficient, but the lack of guidance on failure modes (non-running run_id) and return behavior leaves a real gap for a non-idempotent mutation.

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 0%, so the description carries the burden; it does clarify that run_id must point to a currently running job. It adds nothing about content format, size limits, or whether content is interpreted as instructions to the agent, so the compensation is only partial.

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 names a specific verb (send/inject) and target (a message into a running background job), plus a key qualifier — 'running' — that constrains which runs accept the message. It is clear enough to distinguish from a generic message-ingest tool, though it never explicitly contrasts itself with the nearby ingest_message or cancel_agent_run siblings.

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?

Usage is only implied: an agent can infer the tool is for steering a live job mid-flight, but there is no statement of when to prefer this over ingest_message or when the run is not running. No prerequisites or exclusions are given.

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.

Resources