Skip to main content
Glama

enforce_chain_postconditions

Verifica postcondiciones en pipelines multi-agente MCP, impidiendo que un falso 200 OK vacío ('Hollow OK') avance al siguiente paso.

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": {
      "tool_name": "<tool_name>",
      "output_payload": "<output_payload>",
      "required_keys": "<required_keys>"
    },
    "name": "enforce_chain_postconditions"
  }
}

Input Schema

NameRequiredDescriptionDefault
tool_nameYesNombre de la herramienta ejecutada
required_keysYesLista de claves obligatorias que no pueden ser nulas ni vacías
output_payloadYesDiccionario retornado por la herramienta
forbid_null_or_emptyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it only covers one trait: that a hollow 200 OK is blocked from advancing. It says nothing about what the tool returns (boolean, verdict object, exception), what happens to the caller on failure, whether it is side-effect free, or how forbid_null_or_empty changes behavior. For a gate tool meant to stop pipelines, the missing failure/return contract is a real gap.

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; the core action and the protected invariant both land in the first clause. It is dense with domain jargon ('Hollow OK') that is useful once understood, though the sentence would benefit from one short clause on the return contract.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool takes four parameters including a nested object, has no output schema and no annotations, so the description should explain at least the verdict shape and the effect of forbid_null_or_empty. It covers the motivation but leaves the operational contract entirely unstated, which is thin for a pipeline-gating validator.

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 75% and the schema already documents tool_name, required_keys and output_payload, so the baseline is 3. The description adds no parameter-level detail and does not explain forbid_null_or_empty, which is the one param left undocumented in the schema and whose default semantics (true) materially affect pass/fail decisions.

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?

States a specific verb and resource: 'Verifica postcondiciones en pipelines multi-agente MCP', plus the concrete failure mode it guards against ('Hollow OK'). An agent knows immediately this is a validation gate, not a generic audit tool. It does not name any sibling to differentiate from, but the sibling names listed are unrelated enough that confusion risk is low.

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 by the phrase 'impidiendo que ... avance al siguiente paso', which suggests calling it between pipeline steps. There is no explicit when-to-use, no when-not-to-use, and no stated alternative for related checks such as enforce_session_spending_limit or request_epistemic_audit. The agent must infer the call site from context.

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.