Skip to main content
Glama

Submit the signed posting (step 2 of 2)

submit_post_work

Complete the posting: pass BODY_JSON from prepare_post_work UNCHANGED and the creator wallet's signature over MESSAGE_TO_SIGN. A valid creator signature posts for free (the signature is the gate, not a fee). A post with no valid signature is refused with door_closed and takes no payment. A failed signature is answered in words with the fix; sign again with a fresh prepare. This server relays to the same public gate any HTTP client uses — it holds no keys and no funds. Success returns your packet's id and public page; claiming it (even yourself) is free. Cost and signer: free, no gas; signed by the person's 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": {
      "bodyJson": "<bodyJson>",
      "signature": "<signature>"
    },
    "name": "submit_post_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyJsonYesThe exact BODY_JSON string from prepare_post_work, unchanged.
xPaymentNoOptional, and not needed with a valid creator signature. Leave it out: the paid way to post is closed, so a payment header does not open a post.
signatureYesThe 0x… personal_sign output over MESSAGE_TO_SIGN, from the creator wallet.

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
    • changedInput schema / properties / xPayment / description
      Previous value: -"Optional, and not needed with a valid creator signature: the X-PAYMENT header value (EIP-3009 USDC on Base, from YOUR wallet) for an unsigned post's $0.05 fee."New value: +"Optional, and not needed with a valid creator signature. Leave it out: the paid way to post is closed, so a payment header does not open a post."
  2. Changed1 schema field changed
    • changedInput schema / properties / xPayment / description
      Previous value: -"Optional: the X-PAYMENT header value (EIP-3009 USDC on Base, from YOUR wallet) settling the $0.05 write fee. Omit if you hold an EWP key."New value: +"Optional, and not needed with a valid creator signature: the X-PAYMENT header value (EIP-3009 USDC on Base, from YOUR wallet) for an unsigned post's $0.05 fee."
  3. Changed2 schema fields changed
    • addedOutput schema / properties / claimable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / notClaimableReason
      Added value: +{
      +  "type": "string"
      +}
  4. 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"
      +}
  5. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the trust model (relays to the same public gate any HTTP client uses, holds no keys and no funds), the free-if-signed vs refused-with-door_closed economics, that no payment is taken on refusal, and the fact that failed signatures return actionable text. The non-idempotent hint is reinforced by the requirement to re-prepare rather than retry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical instructions are front-loaded, but the no-keys/no-fee point is restated three times across the description ('the signature is the gate, not a fee', 'holds no keys and no funds', 'the house never holds a key'), and the closing cost-and-signer sentence largely repeats earlier content. Dense and slightly bloated rather than wasteful throughout.

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 an output schema exists, the description needn't detail return values, and it still gestures at them (packet id and public page). Annotations cover open-world and non-idempotent behavior, and the description fills in trust, payment, and failure semantics — nothing an agent needs to call this correctly 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 already 100%, so the baseline would be 3; the description earns more by explaining why bodyJson must be byte-identical from the prior call and by clarifying who produces the signature (the creator's own wallet or passkey). It also resolves the optional xPayment ambiguity by stating a payment header does not open a post.

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 action (complete the posting) as step 2 of 2, names the exact inputs to carry over from prepare_post_work, and makes clear this is the submission half of a two-call flow. An agent can distinguish it from prepare_post_work and from the many other submit_* siblings without opening the schema.

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?

Gives a clear ordering rule (after prepare_post_work), a hard constraint (pass BODY_JSON UNCHANGED), and recovery guidance for the failure path (a failed signature is answered in words; sign again with a fresh prepare). It never explicitly says when not to use it or names a competing alternative, but the two-step framing makes the context unambiguous.

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