Skip to main content
Glama

Explain Agent Detection State

agent_explain
Read-onlyIdempotent

Explains how Herdr classified an agent's current screen detection state and matched manifest rules, optionally including full rule evaluation details and region evidence.

Instructions

Explain how Herdr classified an agent's current screen detection state and matched manifest rules.

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>"
    },
    "name": "agent_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesUnique live agent name or pane ID to inspect.
verboseNoInclude full rule evaluation details and region evidence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds that this surfaces classification reasoning and matched manifest rules, which is genuine context, but it says nothing about what happens when the target does not exist, how expensive a verbose evaluation is, or how much evidence is returned.

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 front-loaded sentence with no filler, and the key concept (detection state plus manifest rule matching) appears immediately. It is efficient, though slightly dense in a way that leaves the reader to unpack what 'classified' entails.

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?

With no output schema, the description carries the burden of conveying what comes back, and it only gestures at it ('explain how ... and matched manifest rules'). For a diagnostic tool whose whole value is the returned evidence, one more clause on the shape of the explanation would close the gap.

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 both parameters (target and verbose) are already documented in the schema and the baseline of 3 applies. The description adds no meaning beyond that — it never mentions the target identifier or what verbose changes about the output.

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 states a specific verb (explain) and a specific resource (an agent's current screen detection state plus the manifest rules it matched), which separates it from data-retrieval siblings like agent_get or agent_read. It is clear what the tool does, but it never names a sibling or otherwise explicitly distinguishes itself from those read tools.

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 would infer this is the tool to reach for when it needs to understand why Herdr classified a screen a certain way. There is no explicit when-to-use trigger, no when-not-to-use condition, and no pointer to an alternative diagnostic surface such as events_recent or pane_get.

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