Skip to main content
Glama

get_agent_condition

Read-only

The run condition of an agent, the available sources, and whether it would be met right now (with hit counts). To know whether the agent actually RUNS, read last_runs (the latest real runs: time, trigger, status) and next_run_at — never conclude 'not running' from runs_skipped/last_condition_check_at, which only count while a condition is set.

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": "get_agent_condition"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesID of the agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes well beyond them. It discloses which fields come back (sources, hit counts, last_runs with time/trigger/status, next_run_at) and, critically, explains the semantics of runs_skipped and last_condition_check_at — they only count while a condition is set — which prevents a serious misreading. This is exactly the kind of context annotations cannot carry.

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?

Two sentences, front-loaded with what is returned before the interpretive caveat, and no filler. The opening noun phrase is a sentence fragment that reads slightly awkwardly, but nothing is wasted or redundant.

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?

With no output schema, the description carries the full burden of describing returns, and it does name the main fields and their meaning. It does not explain the shape or contents of 'available sources' or the hit-count structure, which an agent inspecting results might want. Strong but not exhaustive.

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?

There is a single required parameter, agent_id, and schema description coverage is 100%, so the schema already documents it. The description adds nothing about the identifier's format, sourcing, or scope. Baseline 3 is appropriate when the schema does all the parameter work.

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 the resource precisely: an agent's run condition, its available sources, and whether the condition would currently be met with hit counts. That is specific enough to distinguish it from the write-side sibling set_agent_condition. It stops short of explicitly naming the sibling it complements, so it lands at 4 rather than 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?

There is no explicit 'call this when...' statement, and no direct comparison to set_agent_condition or the other get_agent_* tools. The description does give strong interpretive guidance — read last_runs and next_run_at to judge whether the agent runs, and never infer 'not running' from runs_skipped/last_condition_check_at. That is useful usage direction, but it governs reading the result rather than selecting the tool.

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.