Skip to main content
Glama

fill_card

Type a saved card (number, expiry, CVC, name, billing address) into the checkout page at site over CDP. The page must be on one of the card's allowed sites. The number and CVC are never returned; the result names the fields typed, the site, last4 and the outcome. Pass amount_cents, the total you are about to pay. Above the card's spend rule, or with no amount when the rule needs one, nothing is typed: the owner is asked to approve and the result has outcome waiting_approval and approval_id. Then call wait_for_approval, and fill_card again with the same arguments and approval_id. This tool does not click pay.

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": {
      "site": "<site>",
      "cdp_url": "<cdp_url>"
    },
    "name": "fill_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
labelNoWhich card. Omit to use the newest card allowed on site.
fieldsNoCSS selectors for fields the defaults miss: number, name, exp, exp_month, exp_year, cvc, address_line1, address_line2, city, state, postal_code, country.
cdp_urlYes
approval_idNoThe approval from an earlier fill_card that waited for the owner.
identity_idNoIdentity to use. Omit when the account has exactly one identity.
amount_centsNoThe checkout total, in cents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does it: it discloses that number and CVC are never returned, that typing is suppressed under the spend rule, that an owner approval round-trip is required, and that pay is not clicked. It also previews the return shape (fields typed, site, last4, outcome, approval_id), which is exactly the safety context an agent needs before a write-with-side-effects 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?

Front-loads the action, then prerequisites, then the approval branch as a compact conditional sequence. Dense but every sentence carries operational information; only minor tightening is possible.

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

Completeness5/5

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

For a 7-parameter mutating tool with no output schema and no annotations, the definition covers the whole lifecycle: precondition, spend-rule gate, approval replay, what the result contains, and the explicit non-action (no pay click). Nothing an agent needs in order to invoke it correctly is missing.

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

Parameters4/5

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

Adds genuine meaning beyond the 71%-covered schema: amount_cents is 'the total you are about to pay' and is the input that triggers the spend-rule check, and approval_id must be paired with a replay of the same arguments. The label, identity_id and fields selectors are largely left to the schema, which is acceptable at this coverage level.

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?

States a specific verb and resource: typing a saved card's number, expiry, CVC, name and billing address into a checkout page at a named site over CDP. That clearly separates it from siblings like fill_login, fill_code and fill_in_browser, and the 'does not click pay' line draws the boundary of the action.

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?

Gives real preconditions (the page must be on one of the card's allowed sites) and a precise branch: over the spend rule or missing a required amount means nothing is typed, the result is waiting_approval, and the agent must call wait_for_approval then re-invoke fill_card with the same arguments plus approval_id. It stops short of naming alternative tools for cases this one does not cover.

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