Skip to main content
Glama

Prepare signed proof of finished work (step 1 of 2)

prepare_proof
Read-onlyIdempotent

You did the work — start handing in proof. Pass the packet's workId, your claimId (from submit_claim), your wallet, and proof items matching the packet's own proof line (photos with GPS for field work; documents/text for digital work). On an hours-eligible job, state the hours you actually worked as hoursClaimed, and whatever the job asks to be counted as counts: you state them, and the human who accepts decides the accepted figure. To count toward a place's Standing, a reading carries measurement.kind "measurement" (with measuredAt, and delta on a re-measure) and a repair carries kind "repair". Returns MESSAGE_TO_SIGN and BODY_JSON. Submitting proof is FREE when signed — a worker is never charged at the moment they have earned the right to be asked for nothing. Sign, then call submit_proof within 5 minutes. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.

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": {
      "workId": "<workId>",
      "claimId": "<claimId>",
      "workerWallet": "<workerWallet>",
      "proofs": "<proofs>"
    },
    "name": "prepare_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpsNoFor geolocated field work: {lat, lng} captured ON SITE — the gate refuses geolocated proof without it.
crewNoOptional, for a manager handing in proof for a crew: the people who did the work, 1 to 25 of {"ref":"amina","hoursClaimed":2}, refs as on the claim. Either every person states hoursClaimed or none does; stated hours add up to the proof's hoursClaimed (omit that and their sum becomes it). The human who accepts decides the accepted total, split back across the crew in proportion (equally with no per-person hours). Omit crew on a managed claim and the claim's crew carries over.
countsNoOptional: what the job asked to be counted, in the packet's own units, as plain numbers — {"metres_cleared": 120, "blockages_removed": 4, "check_dams_built": 3}. Lower_snake_case names, at most 40 of them. A numbered count or measurement item is met by a count whose NAME uses a word of the item ("Count of bags removed" is met by bags_removed, never by p3); prepare_proof and a short submit_proof name it. Recorded with the proof; the human who accepts decides the accepted figure.
proofsYes1-20 proof items. A photo goes in BY REFERENCE: {"type":"photo","upload":"sha256:<hex>","step":1,"capturedAt":"<ISO>"}, where the reference is what `node vealth-agent.mjs proof-photo <workId> <claimId> <photo files>` printed on the person's own machine; the photo bytes never pass through this conversation. A small file may still go inline as {"type":"photo","data":"<base64>"}. Text notes are {"type":"text","data":"…"}. When the packet's proof is numbered (p1, p2 …), tag each entry forItem:"p1" so it answers its own item. The packet's proof line (get_work_packet) says exactly what it needs.
workIdYesThe packet id.
claimIdYesReturned by submit_claim.
measurementNoOptional: what this proof is. A reading: {"kind":"measurement","measuredAt":"<ISO>","delta":0}, with delta on a re-measure (above 0 better, 0 held, below 0 worse). A repair: {"kind":"repair","measuredAt":"<ISO>","delta":1}. Only a reading counts toward a place's Standing. Without it the proof is accepted as usual and covers no condition.
hoursClaimedNoOn an hours-eligible job, the hours you ACTUALLY worked, breaks out — a positive number, at most 168, to 6 decimal places. You state it; the human who accepts decides the accepted figure. Required on such a packet (the completion gate refuses a proof without it), optional everywhere else.
workerWalletYesThe same 0x… address that claimed.

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. Changed8 schema fields changed
    • addedInput schema / properties / crew / items / properties / hoursClaimed / description
      Added value: +"Optional. The hours this person actually worked, above 0 and at most 168. Either every person states it or none does. Example: 2."
    • addedInput schema / properties / crew / items / properties / label / description
      Added value: +"Optional short name to call out, at most 40 characters. Example: \"Amina\"."
    • addedInput schema / properties / crew / items / properties / ref / description
      Added value: +"The same handle you gave this person on the claim: 2 to 40 lowercase letters, digits or hyphens. Example: \"amina\"."
    • addedInput schema / properties / gps / properties / lat / description
      Added value: +"Latitude in decimal degrees, captured on site. Example: 34.0522."
    • addedInput schema / properties / gps / properties / lng / description
      Added value: +"Longitude in decimal degrees, captured on site. Example: -118.2437."
    • addedInput schema / properties / measurement / properties / delta / description
      Added value: +"On a re-measure, the change since the last reading: above 0 better, 0 held, below 0 worse. Example: 1."
    • addedInput schema / properties / measurement / properties / kind / description
      Added value: +"measurement is a reading of the condition; repair is work that fixed it. Only a reading counts toward a place's Standing. Example: \"measurement\"."
    • addedInput schema / properties / measurement / properties / measuredAt / description
      Added value: +"When it was measured or repaired, an ISO 8601 time. Example: \"2026-11-17T18:30:00Z\"."
  2. Changed2 schema fields changed
    • changedInput schema / properties / counts / description
      Previous value: -"Optional: what the job asked to be counted, in the packet's own units, as plain numbers — {\"metres_cleared\": 120, \"blockages_removed\": 4, \"check_dams_built\": 3}. Lower_snake_case names, at most 40 of them. Recorded with the proof; it decides nothing on its own."New value: +"Optional: what the job asked to be counted, in the packet's own units, as plain numbers — {\"metres_cleared\": 120, \"blockages_removed\": 4, \"check_dams_built\": 3}. Lower_snake_case names, at most 40 of them. A numbered count or measurement item is met by a count whose NAME uses a word of the item (\"Count of bags removed\" is met by bags_removed, never by p3); prepare_proof and a short submit_proof name it. Recorded with the proof; the human who accepts decides the accepted figure."
    • changedInput schema / properties / proofs / description
      Previous value: -"1-20 proof items. A photo goes in BY REFERENCE: {\"type\":\"photo\",\"upload\":\"sha256:<hex>\",\"step\":1,\"capturedAt\":\"<ISO>\"}, where the reference is what `node vealth-agent.mjs proof-photo <workId> <claimId> <photo files>` printed on the person's own machine; the photo bytes never pass through this conversation. A small file may still go inline as {\"type\":\"photo\",\"data\":\"<base64>\"}. Text notes are {\"type\":\"text\",\"data\":\"…\"}. The packet's proof line (get_work_packet) says exactly what it needs."New value: +"1-20 proof items. A photo goes in BY REFERENCE: {\"type\":\"photo\",\"upload\":\"sha256:<hex>\",\"step\":1,\"capturedAt\":\"<ISO>\"}, where the reference is what `node vealth-agent.mjs proof-photo <workId> <claimId> <photo files>` printed on the person's own machine; the photo bytes never pass through this conversation. A small file may still go inline as {\"type\":\"photo\",\"data\":\"<base64>\"}. Text notes are {\"type\":\"text\",\"data\":\"…\"}. When the packet's proof is numbered (p1, p2 …), tag each entry forItem:\"p1\" so it answers its own item. The packet's proof line (get_work_packet) says exactly what it needs."
  3. Changed1 schema field changed
    • addedInput schema / properties / measurement
      Added value: +{
      +  "description": "Optional: what this proof is. A reading: {\"kind\":\"measurement\",\"measuredAt\":\"<ISO>\",\"delta\":0}, with delta on a re-measure (above 0 better, 0 held, below 0 worse). A repair: {\"kind\":\"repair\",\"measuredAt\":\"<ISO>\",\"delta\":1}. Only a reading counts toward a place's Standing. Without it the proof is accepted as usual and covers no condition.",
      +  "properties": {
      +    "delta": {
      +      "type": "number"
      +    },
      +    "kind": {
      +      "enum": [
      +        "measurement",
      +        "repair"
      +      ],
      +      "type": "string"
      +    },
      +    "measuredAt": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / crew
      Added value: +{
      +  "description": "Optional, for a manager handing in proof for a crew: the people who did the work, 1 to 25 of {\"ref\":\"amina\",\"hoursClaimed\":2}, refs as on the claim. Either every person states hoursClaimed or none does; stated hours add up to the proof's hoursClaimed (omit that and their sum becomes it). The human who accepts decides the accepted total, split back across the crew in proportion (equally with no per-person hours). Omit crew on a managed claim and the claim's crew carries over.",
      +  "items": {
      +    "properties": {
      +      "hoursClaimed": {
      +        "type": "number"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "ref": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ref"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / proofs / description
      Previous value: -"1-20 proof items, e.g. {\"type\":\"photo\",\"uri\":\"https://…\",\"capturedAt\":\"<ISO>\",\"lat\":…,\"lng\":…}. The packet's proof line (get_work_packet) says exactly what it needs."New value: +"1-20 proof items. A photo goes in BY REFERENCE: {\"type\":\"photo\",\"upload\":\"sha256:<hex>\",\"step\":1,\"capturedAt\":\"<ISO>\"}, where the reference is what `node vealth-agent.mjs proof-photo <workId> <claimId> <photo files>` printed on the person's own machine; the photo bytes never pass through this conversation. A small file may still go inline as {\"type\":\"photo\",\"data\":\"<base64>\"}. Text notes are {\"type\":\"text\",\"data\":\"…\"}. The packet's proof line (get_work_packet) says exactly what it needs."
  6. Changed2 schema fields changed
    • addedInput schema / properties / counts
      Added value: +{
      +  "description": "Optional: what the job asked to be counted, in the packet's own units, as plain numbers — {\"metres_cleared\": 120, \"blockages_removed\": 4, \"check_dams_built\": 3}. Lower_snake_case names, at most 40 of them. Recorded with the proof; it decides nothing on its own.",
      +  "type": "object"
      +}
    • addedInput schema / properties / hoursClaimed
      Added value: +{
      +  "description": "On an hours-eligible job, the hours you ACTUALLY worked, breaks out — a positive number, at most 168, to 6 decimal places. You state it; the human who accepts decides the accepted figure. Required on such a packet (the completion gate refuses a proof without it), optional everywhere else.",
      +  "type": "number"
      +}
  7. Changed2 schema fields changed
    • addedOutput schema / properties / claimable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / notClaimableReason
      Added value: +{
      +  "type": "string"
      +}
  8. 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"
      +}
  9. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely non-structured facts: submitting is free when signed, no gas, the signer is the person's own wallet or passkey, the house never holds a key, and there is a hard 5-minute expiry on the prepared message. It also discloses two gate refusals (geolocated proof without gps, hours-eligible packet without hoursClaimed) that an agent would otherwise only discover by failing.

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 with the action and the four arguments an agent must supply, then cost/signing/timing. It is efficient overall, but a few passages duplicate the schema verbatim (hoursClaimed bounds and affect, measurement delta semantics) and the rhetorical aside about never being charged 'at the moment they have earned the right to be asked for nothing' costs a sentence without adding operational 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 9-parameter, nested-object tool with rich annotations and an output schema, the description covers everything the agent needs to act: required inputs and their sources, proof-type expectations, cost, signer, expiry, and the follow-up call. Return values are left to the output schema, which is the correct division of labor.

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% and the schema itself spells out hoursClaimed bounds, measurement.kind enum values, counts naming rules, and the crew hours-consistency rule. The description's added value is linkage only — claimId comes from submit_claim, proofs must mirror the packet's proof line, measurement kind

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: it prepares (not submits) a signed proof payload for finished work, and names the artifact it returns (MESSAGE_TO_SIGN and BODY_JSON). The sibling relationship is explicit — 'Sign, then call submit_proof within 5 minutes' — so an agent can tell it apart from submit_proof without opening either 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?

It gives the precondition (you did the work; proof must match the packet's proof line from get_work_packet), the sequencing constraint (step 1 of 2, sign then submit_proof within 5 minutes), and per-job-type routing (photos with GPS for field work, documents/text for digital work). The only minor gap is that it doesn't restate what happens if you skip this and call submit_proof directly, but the 'step 1 of 2' framing makes that inferable.

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