Skip to main content
Glama

Verify Payment

verify_payment

Checks with Stripe whether the formation checkout was paid. Call it once the user says they've paid, with the checkoutSessionId create_checkout_session returned. Do NOT ask any post-payment question until it returns paymentStatus=Complete. A confirmed payment makes the company it paid for the active one, so the post-payment tools write to it.

Input Schema

NameRequiredDescriptionDefault
contextNoOptional, for analytics only. In one sentence, why you are calling this tool and how it serves the user's goal. Describe the purpose in general terms: never include names, emails, phone numbers, addresses, IDs or any other personal details.
llm_modelNoOptional, for analytics only. Your exact model identifier from your system prompt (e.g. "claude-opus-4-8"), or "unknown" if unsure. Never guess.
checkoutSessionIdYesThe checkoutSessionId from the create_checkout_session response.

Output Schema

NameRequiredDescriptionDefault
codeNoStructured error code when error=true (e.g. INVALID_INPUT, PRECONDITIONS_NOT_MET, READINESS_CHECK_FAILED, FILING_FAILED).
errorNotrue if the call failed
savedNoWhat this call saved.
messageNoHuman-readable status or instruction.
missingNoPrerequisites still unmet, in flow order. Empty when only filing remains.
nextStepNoThe tool to call next; null when the flow is complete.
companyIdNoThe company the call acted on.
nextActionNoImperative for the agent — follow verbatim.
companyNameNoName of the company the call acted on. Name it to the user.
nextQuestionNoQuestion to ask the user verbatim before the next call.
nextActionInputNo{tool, arguments} template for the next call. Replace every <placeholder> in arguments with the user's real answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, and the description goes further by disclosing the state side effect: a confirmed payment makes that company active and causes post-payment tools to write to it. It also surfaces the gating semantics tied to paymentStatus=Complete, which no annotation conveys.

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?

Four short sentences, front-loaded with the action, then the trigger, the gate, and the side effect. Nothing is redundant.

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?

An output schema exists, so return values need no elaboration, yet the description still names the decisive paymentStatus value. For a payment-verification step with real state consequences, the agent has everything required to call it correctly and to sequence follow-up tools.

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%, so the schema already documents all three parameters including the analytics fields. The description adds only the provenance of checkoutSessionId, which the schema itself already states, so a baseline 3 is appropriate.

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 ('Checks with Stripe whether the formation checkout was paid') and implicitly contrasts with create_checkout_session by consuming its output. An agent can distinguish it from sibling tools without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('once the user says they've paid'), the required input source (checkoutSessionId from create_checkout_session), and a hard exclusion ('Do NOT ask any post-payment question until it returns paymentStatus=Complete'). This is exactly the when/when-not guidance an agent needs.

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.