Skip to main content
Glama

acr_analyze_prompt_bloat

Analyze an agent run for prompt redundancy, token bloat, and caching opportunities. Identifies wasted tokens in prompts so you can cut cost and latency.

Instructions

Analyze prompt redundancy, token bloat, and prompt caching advice for a run.

Args: run_id: The UUID or string ID of the agent run.

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

Input Schema

NameRequiredDescriptionDefault
run_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 'Analyze' implies a non-mutating read, and it does disclose what the analysis covers (redundancy, bloat, caching advice), but it never states whether there are side effects, whether an LLM/Judge is invoked, or whether the run must be completed first.

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?

The purpose sentence is front-loaded and tight, with three concrete deliverables and no filler. The trailing docstring-style 'Args:' block is slightly mechanical but brief and does add the run_id format detail.

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 only one required parameter and an output schema present, the definition covers the essentials an agent needs to call it. However, with zero annotations it omits the behavioral basics (read-only nature, preconditions on run state) and offers no routing guidance against the many sibling analysis tools.

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

Parameters4/5

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

Schema coverage is 0% (the schema only declares a string titled 'Run Id'), so the description must compensate — and it does, stating the parameter accepts a UUID or a string ID of an agent run. That is meaningful format guidance beyond the raw schema.

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 ('Analyze') and three concrete analysis outputs (prompt redundancy, token bloat, prompt caching advice), scoped to a single agent run via run_id. An agent can tell this apart from cost- or trace-oriented siblings such as acr_get_cost_summary or acr_get_run_trace, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives for related questions (e.g., cost summary vs prompt bloat). The only usage signal is the required run_id, which implies the tool operates on one existing run; the agent must infer the rest.

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