Skip to main content
Glama

claim_dossier

Idempotent

Redeem a paid Stripe Checkout session for a dossier access token, then pass that token to get_dossier to unlock the full UBO chain and financial history report. Idempotent, so retries are safe.

Instructions

Redeem a paid Stripe Checkout session for a dossier access token. Pass the session_id (cs_…) from the post-payment redirect after buy_dossier. Returns { token, entity_id, tier } — pass the token to get_dossier as its token input for the unlocked report (standard: full UBO chain + financial history · premium: additionally itemised assets). Idempotent: claiming the same session again returns the same grant, so it is safe to retry. Fails with 402 not_paid until the payment has actually completed — wait for the human to finish Checkout, then call again.

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": {
      "session_id": "<session_id>"
    },
    "name": "claim_dossier"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesStripe Checkout session id (cs_…) from the success redirect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.11

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare idempotentHint and destructiveHint=false, but the description goes further: it explains what idempotency means concretely (same grant returned, safe to retry), documents the 402 not_paid failure mode and its resolution, and describes the return payload. That is real behavioral context the structured fields do not carry.

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?

Front-loads purpose, then parameter source, then return contract, then failure/retry semantics in a tight sequence. Despite covering four distinct concerns, no sentence is redundant and none repeats a structured field verbatim.

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?

With no output schema present, the description carries the return contract itself ({ token, entity_id, tier }) and distinguishes standard versus premium report contents. Combined with the error path and idempotency note, an agent has everything needed to call this correctly and handle failure.

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?

Schema coverage is 100%, so the format constraint and description of session_id are already supplied. The description still adds provenance the schema lacks — that the id comes from the post-payment success redirect after buy_dossier — which tells the agent where to source the value rather than just its shape.

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 ("Redeem a paid Stripe Checkout session for a dossier access token") and explicitly positions itself in the workflow between buy_dossier and get_dossier, so an agent can separate it from both siblings without opening a 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 the exact trigger condition (session_id from the post-payment redirect after buy_dossier) and the follow-up action (pass the token to get_dossier). It also names the blocking condition and remedy — 402 not_paid until the human finishes Checkout, then retry — which is precisely the 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.