Skip to main content
Glama

§6: El contexto como activo estratégico

auditar_contexto

Audita el contexto del agente: separación en 3 capas (identidad/dominio/referencia), relevancia y caducidad de datos, estrategia de integración (directo/snapshot/RAG/estático), gobernanza, least-privilege, trazabilidad y defensa anti prompt-injection. Recibe la definición del agente y devuelve un brief de evaluación estructurado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoIdioma de la respuesta (default "es"). / Response language: pass "en" for English output.
agent_definitionYesDefinición completa del agente a mejorar: system prompt, frontmatter, configuración, descripción de tools y cualquier doc de diseño. Cuanto más completa, mejor la evaluación.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations provided, so description entirely responsible for behavioral disclosure. It states the tool 'audits' and 'returns a brief' but does not explicitly confirm it is read-only (non-destructive) or specify any write operations. The lack of clarity on side effects reduces transparency.

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?

Description is a single coherent paragraph, front-loaded with the core purpose, and covers most aspects without extraneous detail. Slightly verbose but still concise for the scope.

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?

Given no output schema, the description should explain return structure. It only says 'brief de evaluación estructurado', which is vague. Complex audit tool with multiple axes (3 layers, governance, etc.) would benefit from listing expected output sections. Adequate but not complete.

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 baseline is 3. Description briefly mentions 'agent_definition' as the input but adds no extra detail beyond the schema (e.g., no example values, format hints, or constraints). The 'language' parameter is also absent from description.

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?

Description clearly states the tool audits agent context across specific dimensions (3 layers, relevance, integration, etc.) with a clear verb ('audita') and resource ('contexto del agente'). However, it does not distinguish from sibling audit tools like 'evaluar_sistema' or 'revisar_rol_y_frontera', which may overlap in purpose.

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?

No guidance on when to use this tool versus siblings. Does not specify prerequisites, expected input format beyond 'definición completa', or when not to use it. The context of the sibling tools list (e.g., 'evaluar_autonomia', 'recomendar_flujo') is not leveraged to set boundaries.

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.