Skip to main content
Glama

claim_breach_credit

Verifies the on-chain SLA agreement state for tokenId and, if active and the caller is a party, calls microResetInsurance to mitigate the breach. Use after a drift or expiry alert. Requires x402 payment ($0.005). Returns payment instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional human-readable breach reason for audit
tokenIdYesSLA token ID to verify and mitigate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It transparently mentions the payment requirement ($0.005) and returns payment instructions, and it implies a conditional mutation. However, it doesn't clarify what happens if the SLA is inactive or the caller is not a party, nor how the payment flow sequences with the actual mitigation call.

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 description is two sentences, front-loaded with the primary action, and each sentence adds value. The first sentence is dense but packs the core behavior; the second gives usage and payment info. No fluff, but slightly longer than necessary.

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?

There is no output schema, so the description should explain return values. It says 'Returns payment instructions,' but that's minimal. It doesn't elaborate on error cases, the outcome when conditions are not met, or what triggers the actual on-chain call. For a tool involving payment, more context would be needed.

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 100%, so the baseline is 3. The description adds little beyond the schema: it mentions 'tokenId' and 'reason' but the schema already provides the same semantic detail. No additional parameter context is given.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states what the tool does: verifies SLA agreement state and conditionally calls microResetInsurance. The verb 'verifies' and 'calls' are specific, and the resource (tokenId) is identified. It distinguishes itself from siblings like micro_reset by adding the verification step.

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

Usage Guidelines4/5

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

The description explicitly says 'Use after a drift or expiry alert,' providing clear context for when to invoke the tool. However, it doesn't mention alternatives or when not to use it, especially since a sibling tool 'micro_reset' could be a direct alternative if no verification is needed.

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