Skip to main content
Glama

Submit Task Work & Verification Proofs

submit_task
Idempotent

Submit structured work output and proof metadata for a claimed task to trigger deterministic verification and release funds or request principal approval.

Instructions

Submit structured work output (payload) and optional deterministic proofMetadata (GPS coordinates, SHA-256 photo digests, on-site OTP) for a task currently claimed by participantId. Every submission is inspected by the prompt-injection quarantine scanner and evaluated against deterministic gates (jsonSchema, geoOtp). If gates pass and requirePrincipalApproval is false, funds release deterministically; if true, the task transitions to AWAITING_PRINCIPAL_APPROVAL for Principal 1-Tap sign-off. Returns gate check results and updated task/submission status.

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": {
      "taskId": "<taskId>",
      "participantId": "<participantId>",
      "payload": "<payload>"
    },
    "name": "submit_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesUnique ID of the claimed task being submitted (e.g. "tsk_...").
claimIdNoOptional active claim ID returned by `claim_task` (inferred automatically if omitted).
payloadYesStructured JSON work output conforming strictly to the task’s `acceptance.jsonSchema`. Must not contain prompt-injection strings or smuggled control keys.
participantIdYesUnique ID of the participant who holds the active claim on this task.
proofMetadataNoOptional physical/artifact proof metadata (GPS coordinates, SHA-256 photo hashes, Principal on-site OTP, external invoice/license reference).
idempotencyKeyNoOptional deterministic idempotency key to safely retry submission without duplicate ledger entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv0.1.1
    • addedInput schema / properties / claimId / description
      Added value: +"Optional active claim ID returned by `claim_task` (inferred automatically if omitted)."
    • addedInput schema / properties / claimId / minLength
      Added value: +1
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Optional deterministic idempotency key to safely retry submission without duplicate ledger entries."
    • addedInput schema / properties / idempotencyKey / maxLength
      Added value: +128
    • addedInput schema / properties / idempotencyKey / minLength
      Added value: +1
    • addedInput schema / properties / participantId / description
      Added value: +"Unique ID of the participant who holds the active claim on this task."
    • addedInput schema / properties / payload / description
      Added value: +"Structured JSON work output conforming strictly to the task’s `acceptance.jsonSchema`. Must not contain prompt-injection strings or smuggled control keys."
    • addedInput schema / properties / proofMetadata / description
      Added value: +"Optional physical/artifact proof metadata (GPS coordinates, SHA-256 photo hashes, Principal on-site OTP, external invoice/license reference)."
    • addedInput schema / properties / proofMetadata / properties / externalRef / description
      Added value: +"Optional external reference such as an invoice number or license ID."
    • addedInput schema / properties / proofMetadata / properties / geo / description
      Added value: +"On-site GPS coordinate proof (required when acceptance.geoOtp is configured)."
    • addedInput schema / properties / proofMetadata / properties / geo / properties / accuracyMeters / description
      Added value: +"GPS accuracy radius in meters."
    • addedInput schema / properties / proofMetadata / properties / geo / properties / capturedAt / description
      Added value: +"ISO-8601 UTC timestamp when the GPS reading was captured."
    • addedInput schema / properties / proofMetadata / properties / geo / properties / lat / description
      Added value: +"Observed GPS latitude in decimal degrees."
    • addedInput schema / properties / proofMetadata / properties / geo / properties / lng / description
      Added value: +"Observed GPS longitude in decimal degrees."
    • addedInput schema / properties / proofMetadata / properties / otpCode / description
      Added value: +"On-site OTP verification code provided by the Principal."
    • addedInput schema / properties / proofMetadata / properties / photos / description
      Added value: +"Array of photo proof objects with SHA-256 integrity digests."
    • addedInput schema / properties / proofMetadata / properties / photos / items / properties / caption / description
      Added value: +"Optional short caption describing the photo."
    • addedInput schema / properties / proofMetadata / properties / photos / items / properties / capturedAt / description
      Added value: +"Optional ISO-8601 UTC timestamp when the photo was captured."
    • addedInput schema / properties / proofMetadata / properties / photos / items / properties / sha256 / description
      Added value: +"64-character hex SHA-256 hash of the photo artifact."
    • addedInput schema / properties / proofMetadata / properties / photos / items / properties / url / description
      Added value: +"URL or data reference for the proof photo."
    • addedInput schema / properties / taskId / description
      Added value: +"Unique ID of the claimed task being submitted (e.g. \"tsk_...\")."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses prompt-injection quarantine scanning, deterministic gates (jsonSchema, geoOtp), the funds-release condition, and the AWAITING_PRINCIPAL_APPROVAL transition. It also reinforces the idempotentHint by mentioning idempotencyKey and describes the return payload without a contradiction.

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 required inputs, then the verification and outcome semantics. The second sentence is dense with gates and state names but every clause carries information; minor cost is a long compound sentence that could be split.

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?

Given six parameters, nested proofMetadata, and no output schema, the description covers prerequisites, validation gates, the approval branch, and what is returned (gate results and updated status). An agent has enough to invoke it and interpret outcomes correctly.

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, but the description adds meaning beyond field docs: payload must conform strictly to the task's acceptance.jsonSchema, and proofMetadata carries GPS, SHA-256 digests, and on-site OTP. It does not restate parameter constraints, which 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 (submit) and resource (structured work output plus proof metadata for a claimed task) and ties it to the participantId claim. This is clearly distinguishable from approve_task and claim_task in the sibling list.

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

Usage Guidelines4/5

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

Establishes the prerequisite that the task must be currently claimed by participantId, implying claim_task ran first, and explains the requirePrincipalApproval branch that routes to approval. It never names an alternative tool or states exclusions, so it stops short of explicit when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.