Skip to main content
Glama

Pay for a hire

fund_contract

Charge the person's saved card for the hire. Stripe processes the payment and the worker's payout is withheld until approve_completion (or the review window ends). Fails with 402 if no saved card: tell the person to add one in the Actuator app (Billing).

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": {
      "contract_id": "<contract_id>"
    },
    "name": "fund_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
contract_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, open-world operation; the description goes well beyond that by naming Stripe as the processor, explaining the withheld-payout lifecycle, and giving the exact 402 failure with a remediation path (add a card in Billing). It does not address idempotency or what happens if the call is retried, which matters for a charge operation.

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 short sentences: action first, lifecycle constraint second, failure/remediation third. No filler, and the error-handling instruction is paired with the condition that triggers it.

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 mutation with annotations present and no output schema, the description covers the important operational facts: who processes the payment, when funds release, and how a missing card surfaces. The main residual gap is the return value on success and whether a repeat call could double-charge.

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?

The single required parameter contract_id has 0% schema description coverage, so the description carries the burden and adds essentially nothing: it says 'for the hire' but never names the contract id, its format, or where to obtain it. The pattern constraint and the schema's one-line shape are all the agent has.

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 opens with a specific verb+resource: 'Charge the person's saved card for the hire.' An agent immediately knows this is the payment-capture step, and the mention of approve_completion downstream situates it distinctly from the approval sibling.

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?

It makes clear this is the charge step whose payout is released only on approve_completion or expiry of the review window, which implies ordering relative to siblings. It stops short of an explicit 'use this only after X / do not use instead of Y' routing statement, so a small inference is left to the agent.

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