Skip to main content
Glama

answer_payment

Answer the task of a payment started with start_payment. PAID returns the voucher (pwpv_…) once. PASS returns the next task. FAIL keeps the same task.

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": {
      "checkout": "<checkout>",
      "answer": "<answer>"
    },
    "name": "answer_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYes
checkoutYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers the key state machine: PAID yields the voucher only once, PASS advances to the next task, FAIL repeats the same task. It omits error handling for malformed answers and whether retries are safe beyond the "once" note, so it is not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three terse sentences, each front-loading a distinct fact: dependency, then the three outcome branches. No filler or redundant restatement of the name.

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?

No output schema and no annotations mean the description must do all the work; it covers outcome semantics well but leaves both parameters undefined, which is a meaningful gap for a tool the agent must call with two required strings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for both `answer` and `checkout`, and the description only obliquely implies that `answer` is the task response. It never explains what `checkout` refers to (presumably an identifier from start_payment) or what values `answer` accepts.

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 ("answer the task of a payment") and ties itself to the sibling that creates the payment, start_payment. An agent can tell it apart from start_payment, though what constitutes an "answer" is left implicit.

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?

Explicitly scopes usage with the prerequisite "started with start_payment", which tells the agent this must follow that call. It doesn't name a when-not condition or point to alternatives like submit_answer, but the sequencing constraint is clear.

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