Skip to main content
Glama

Enqueue agent job

enqueue_agent_job

Manually trigger a background run for a server_job agent right now (doesn't wait for its schedule/event).

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_id": "<agent_id>"
    },
    "name": "enqueue_agent_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadNo
triggerNoDefaults to 'manual'.
agent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false, so the write/async profile is partly covered. The description adds that the run executes in the background rather than inline, which is useful context. However, with idempotentHint=false it never warns that repeated calls enqueue duplicate runs, nor does it say what the call returns (a run/job identifier) or how to track the enqueued run afterwards.

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?

A single dense sentence with zero filler, and the core action is front-loaded. The parenthetical clarification is arguably slightly ambiguous — 'doesn't wait' could be read as the tool call not blocking, rather than the trigger ignoring the schedule — which costs a point but not much length.

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 non-idempotent mutating tool with a nested object parameter, no output schema, and no return-value documentation, the description is thin. An agent cannot learn from it what happens to the 'payload', whether the call blocks until the run completes, or how to find the run it just enqueued.

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 only 33%: only 'trigger' has an inline description ('Defaults to manual'). The 'payload' parameter is a nested object with no explanation anywhere of what keys it accepts or how they reach the agent run, and 'agent_id' is undocumented beyond its name. The description adds no parameter meaning at all, leaving the most complex parameter opaque.

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+resource+scope: 'manually trigger a background run for a server_job agent right now'. The parenthetical 'doesn't wait for its schedule/event' crisply separates this from the agent's own schedule- or event-driven execution. It does not explicitly differentiate itself from siblings like cancel_agent_run or list_agent_runs, 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 Guidelines3/5

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

Usage is implied rather than stated: the agent can infer 'call this when you need a run to start immediately instead of waiting for the schedule'. There is no explicit when-not condition, no mention of a sibling alternative for inspecting or cancelling the resulting run, and no note on preconditions such as the agent needing to exist or be enabled.

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