Skip to main content
Glama

How to claim a packet and get paid

how_to_claim
Read-onlyIdempotent

Explains exactly how to claim work and what happens after. Claiming is free. Returns instructions, never performs the claim, because claiming requires the worker's own wallet signature. Pass the optional workId of the job in hand and the NEXT_CALL is prepare_claim for that job (with its 18+ and safety attestations when the claim gate asks), plus the job page where a person with no wallet can tap Claim and sign in with a passkey. Cost and signer: free and keyless, nothing to sign.

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": "how_to_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
workIdNoOptional. The job in hand (e.g. WORK_1784530149768_4z4r6jz). With it the reply ends in the exact prepare_claim for that job; without it, in find_work.

Output Schema

NameRequiredDescriptionDefault
okNo
toolNo
fundedNo
payUsdNo
workIdNo
claimIdNo
claimableNo
next_callNo
proofRuleNo
fulfillableByNo
definitionOfDoneNo
needs_from_callerNo
notClaimableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workId
      Added value: +{
      +  "description": "Optional. The job in hand (e.g. WORK_1784530149768_4z4r6jz). With it the reply ends in the exact prepare_claim for that job; without it, in find_work.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / claimable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / notClaimableReason
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "claimId": {
      +      "type": "string"
      +    },
      +    "definitionOfDone": {
      +      "type": [
      +        "object",
      +        "array",
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "fulfillableBy": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "funded": {
      +      "type": "boolean"
      +    },
      +    "needs_from_caller": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "next_call": {
      +      "type": "object"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "payUsd": {
      +      "type": "number"
      +    },
      +    "proofRule": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "workId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety is covered; the description goes further by explaining WHY it cannot act (the claim needs the worker's own wallet signature), that claiming is free and keyless, and that 18+ and safety attestations surface when the claim gate asks. That is real behavioral context an agent would otherwise have to discover by trial. Minor deduction because the phrasing around attestations is terse and an agent may not know whether those gates are conditional or always present.

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-loaded and dense with useful content, but it repeats the cost point ("Claiming is free" early, then "Cost and signer: free and keyless, nothing to sign" at the end) and stacks the attestation and passkey caveats into one long sentence. Trimming the duplicate cost statement would tighten it without losing information.

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 zero-required-parameter guidance tool with an output schema already describing the return, this covers everything an agent needs: what it does, what it will not do, what to pass, where each branch leads, and the human/no-wallet path. Nothing material 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?

Schema coverage is 100%, so the baseline is 3, and the description earns an increment by stating the downstream consequence of each branch: with workId the reply ends in the exact prepare_claim for that job, without it in find_work. That converts a bare optional string into a routing decision.

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?

"Explains exactly how to claim work and what happens after" names a specific verb (explains) and resource (claiming work), then immediately draws the line against the acting siblings: "Returns instructions, never performs the claim." An agent can distinguish this from prepare_claim and submit_claim without opening any 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 explicit branching: pass workId and the next call is prepare_claim for that job; omit it and the next call is find_work. It also names the human fallback path (job page, tap Claim, passkey sign-in) for someone without a wallet, so the agent knows which route fits which caller.

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