Skip to main content
Glama

A2A Defense & Monetization Gateway

audit_context_pruning

Audita la pérdida de información entre el contexto bruto y el podado, verificando la preservación obligatoria de entidades e invariantes.

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": {
      "raw_context": "<raw_context>",
      "pruned_context": "<pruned_context>"
    },
    "name": "audit_context_pruning"
  }
}

Input Schema

NameRequiredDescriptionDefault
raw_contextYesTexto del contexto completo previo a la poda
pruned_contextYesTexto del contexto compactado
critical_entitiesNoLista de entidades, hashes o IDs obligatorios

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the core check (mandatory preservation of entities and invariants), which is more than a restatement of the name, but it omits whether the audit returns pass/fail, a diff, or a severity report, and does not say what happens if critical_entities is omitted.

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 that front-loads the core action and then the verification scope; nothing is redundant. It is slightly compressed — the two clauses could be split for readability — but it wastes no words.

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 three-parameter tool with no annotations and no output schema, the description covers the input side adequately but leaves the return value entirely unexplained. An agent knows what the tool checks yet not what it receives back or how to interpret a result, which is a meaningful gap for an audit tool.

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 coverage is 100%, so the three parameters are already fully documented in the input schema. The description's mention of 'entidades e invariantes' loosely corresponds to critical_entities but adds no format, matching, or fallback semantics beyond what the schema states.

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 and object: auditing information loss between raw and pruned context, with verification of mandatory preservation of entities and invariants. This makes the tool's function unambiguous and distinct from any sibling in the supplied list, though it does not explicitly name or contrast with an alternative tool.

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 it should call this when it wants to validate that pruning did not drop critical content. There is no explicit when-to-use/when-not-to-use statement, no mention of prerequisites, and no routing to alternatives for related auditing tasks.

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