Skip to main content
Glama

Get a Link for a Human to Claim This Workspace

getClaimLink

Mint a one-time link that a human opens in a browser to take ownership of this workspace: they set an email and password, and can attach payment to buy more capacity. Give the link to the person. You never need to open it, and you cannot use it yourself.

USE WHEN:
- A run was refused with errorCode VERIFICATION_REQUIRED: the workspace is on the Free plan, and the person must take it over and complete the Verify page: a verified mobile and a card (it is not charged on the Free plan). If this tool then returns 409 workspace-claimed, do not call it again: the owner or an admin signs in to the TotalPath web app (the same environment as this server) and completes its Verify page (path /verify)
- Free capacity is running low or exhausted (getWorkspaceUsage) and the person wants to keep going
- verifyAnchorCode returned freeGrantOutcome not-owed or refused
- The person wants to see the workspace, its call history or its keys in the TotalPath web app
- The person asks how to pay

WHAT YOU GET BACK (201):
- url: the link. Valid for ONE HOUR and usable ONCE. Pass it to the person as-is.
- expiresAt: when it stops working

AFTER THE PERSON CLAIMS:
Your API key keeps working exactly as before. The person now owns the workspace, can see everything you did, and can buy capacity that your key can then spend. Nothing you need to do.

WHEN IT IS REFUSED:
- 409 with reason workspace-claimed: a human already owns this workspace, so no more claim links can be issued. Tell the person to sign in to the TotalPath web app instead. If capacity is the concern, call getWorkspaceUsage first: when what is left is not enough for the work planned, the owner or an admin buys capacity under Settings, Billing (path /platform/settings/billing). Only if a run was refused with VERIFICATION_REQUIRED, they also complete the Verify page (path /verify).
- 503: the link could not be issued just now. Try again shortly.

A link that expires unused is harmless. Call this again for a fresh one.

RELATED TOOLS:
- getWorkspaceUsage: check the balance before deciding whether the person needs to pay
- verifyAnchorCode: must have succeeded before the workspace can do anything worth paying for

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getClaimLink"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
urlYesThe token is in the fragment, after `#t=`.
expiresAtYesOne hour after minting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With annotations present, the description still adds substantial behavior the annotations cannot convey: the link is single-use and expires in one hour, the API key keeps working unchanged after a claim, an unused expiry is harmless and a fresh link can be minted, and 409/503 responses mean specific things with specific follow-ups. The only thing that gives slight pause is that openWorldHint=false sits a little oddly with handing a URL to a browser-based human, though this is not a contradiction so much as a boundary case.

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?

Structure is strong: purpose first, then USE WHEN, return shape, after-claim effects, refusal handling, related tools. It is long, and the 409 paragraph repeats the /verify and billing path instructions already implied by USE WHEN, so a small amount of text could be trimmed, but every section is front-loaded and scannable.

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 mutation-adjacent tool with a non-obvious human handoff, the definition covers everything an agent needs: why to mint the link, what to do with it ('Give the link to the person. You never need to open it, and you cannot use it yourself'), lifetime, failure modes, and post-claim consequences. Combined with the annotations and an existing output schema, no operational gap remains.

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?

The tool takes zero parameters (empty object, additionalProperties false), so there is no parameter meaning to add, which sets the baseline at 4. The description does proactively document the 201 response fields (url, expiresAt) and their one-hour/one-use constraints, which adds value even though an output schema exists.

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 opening sentence gives a specific verb and resource — 'Mint a one-time link that a human opens in a browser to take ownership of this workspace' — plus what the recipient does with it (email, password, payment). It is clearly distinct from the sibling getters like getWorkspaceUsage or getWorkspacePlan, which only read state.

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?

The USE WHEN block enumerates five concrete triggers, each tied to an observable condition (errorCode VERIFICATION_REQUIRED, low capacity, freeGrantOutcome not-owed or refused, human wanting web access, payment question). It also names the alternative path when the tool is refused: sign in to the TotalPath web app and complete /verify or buy under /platform/settings/billing, with getWorkspaceUsage used first to check the balance.

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.