Skip to main content
Glama

evaluate_financial_policy_proxy

Audita y filtra intenciones de gasto M2M y retos HTTP 402 contra políticas de seguridad (FIN-01 a FIN-05: dominios autorizados, presupuesto horario/diario, umbrales HITL y circuit breaker post-pago).

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": {
      "agent_id": "<agent_id>",
      "target_url": "<target_url>",
      "amount_usd": "<amount_usd>"
    },
    "name": "evaluate_financial_policy_proxy"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoPOST
payloadNoPayload a enviar al proveedor
agent_idYesID del agente que intenta ejecutar el gasto
amount_usdYesMonto en dólares solicitado
target_urlYesURL destino del servicio o proveedor M2M
challenge_headersNoCabeceras HTTP 402 emitidas por el proveedor si existen

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden and leaves critical behavior undisclosed. It never states whether the tool only audits/returns a decision or actually proxies and executes the spend (the name says 'proxy'), whether it is state-mutating or read-only, what result shape it returns, or what happens when a policy is violated.

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 opens with the action verb and packs the policy scope into one parenthetical list, with no filler. The dense enumeration of FIN rules is informative, though it pushes length toward the heavy end for one sentence.

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?

For a 6-parameter tool with nested objects, no output schema, and no annotations, the description should clarify the allow/deny result and whether it enforces or merely audits. It covers the policy scope well but leaves the decisive return/execution semantics ambiguous, which is a real gap for an agent deciding whether calling it is safe.

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 already 83%, so the structured schema documents method, payload, agent_id, amount_usd, target_url, and challenge_headers. The description adds policy context ('dominios autorizados', budget windows) but no syntax, format, or per-parameter meaning beyond the schema, so the baseline 3 applies.

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?

Clear specific verbs ('Audita y filtra') applied to two concrete resources: M2M spending intents and HTTP 402 challenges, scoped to named policies FIN-01 through FIN-05. An agent can tell what the tool does at a glance, though it does not explicitly contrast itself with similar-sounding siblings such as underwrite_execution_policy or enforce_session_spending_limit.

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?

The description implies a pre-spend evaluation scenario but never states when to call this versus alternatives, nor any exclusions or prerequisites. The 'post-pago' circuit breaker mention hints at a second invocation context (after payment) without clarifying when or why the agent should trigger it.

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.