Skip to main content
Glama

Status of one payment

agentguard_payment_status
Read-only

Look up a payment by its ID to check if the owner approved or denied it. Read-only, using the payment ID returned by agentguard_pay.

Instructions

Look up a payment by id, e.g. to see if the owner approved or denied a pending payment. Read-only.

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": {
      "id": "<id>"
    },
    "name": "agentguard_payment_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPayment id returned by agentguard_pay

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true is already declared in annotations, and the trailing 'Read-only' merely restates it. The description does add modest value by revealing that the result indicates approval/denial/pending state, but it says nothing about error behavior for unknown ids or about scope/permissions.

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?

Two short sentences, purpose front-loaded before the example. The 'Read-only' clause is largely redundant with the annotation and could be dropped, but there is no other wasted wording.

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

Completeness4/5

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

For a one-parameter, read-only lookup with no output schema, the description covers what it does and the main motivating scenario, and the annotation covers safety. It stops short of describing what the returned status values actually are, which would fully close the loop for an agent interpreting the response.

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?

With a single parameter at 100% schema description coverage, the schema already documents 'id' as the payment id returned by agentguard_pay. The description's 'by id' adds nothing beyond that, so the baseline of 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?

The description names a specific verb ('Look up') and resource ('a payment') with the retrieval key ('by id'), so an agent knows exactly what the tool returns conceptually. It does not explicitly distinguish itself from siblings like agentguard_history or agentguard_balance, which keeps it from a 5.

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 conveyed only through an illustrative example ('e.g. to see if the owner approved or denied a pending payment'), which implies the check-status scenario but gives no explicit when-to-use versus when-to-use-another-tool guidance. No alternatives or exclusions are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.