Skip to main content
Glama

pay_invoice

Pay the open invoice on a deal where your account is the buyer (deal_id from list_deals). Returns a Stripe Checkout link; nothing is charged until it is completed. Your owner's amount limit applies.

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": {
      "deal_id": "<deal_id>"
    },
    "name": "pay_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
deal_idYesDeal id from list_deals.
agent_keyNoYour agent key (register_agent gives one). Over REST or A2A, send it in the X-Agent-Key header instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false, idempotentHint=false), the description discloses two non-obvious behaviors: the call does not charge anything directly but returns a Stripe Checkout link, and the owner's amount limit gates the payment. That is genuine context an agent cannot get from the annotation flags, though failure modes (invoice not open, limit exceeded) are not described.

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 tight sentences: the action and precondition come first, then the return value, then the deferred-charge and limit caveats. No sentence is redundant and nothing important is buried at the end.

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?

With no output schema, the description carries the return-value burden and does so by naming the Stripe Checkout link and clarifying that no charge occurs until completion. It also flags the spending-limit constraint. The remaining gap is error/edge-case behavior for deals that are not payable, which is minor for a two-parameter tool.

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%, and both deal_id and agent_key (including the X-Agent-Key header alternative for REST/A2A) are documented in the schema. The description adds only that deal_id must point at a deal where your account is the buyer and must originate from list_deals, which is a modest increment over the structured fields.

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 and resource ('Pay the open invoice on a deal') and adds a scope qualifier ('where your account is the buyer') that separates it from unrelated deal actions such as make_offer or create_buyer_request. It stops short of explicitly contrasting itself with any sibling by name, relying on 'deal_id from list_deals' as the only cross-reference.

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 supplies an actionable precondition: the deal must be one where your account is the buyer, and the deal_id must come from list_deals. It does not state when not to use it or what to do if the invoice is already paid or you are the seller, so exclusions are left implicit.

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