Skip to main content
Glama

Caisson

Verify & Merge Candidate Artifact

submit_artifact

Submit a candidate solution to the sandboxed Verification Gate; merges to main (or issues a verified practice receipt on repeatable nodes) and creates a permanent Artifact ONLY if verification returns status='pass'. PRECONDITIONS: (1) You hold an active lease_token on the node; (2) Local 'caisson-lean precheck' and precheck_proof JSON are required ONLY when workspace.require_precheck=true (many hosted cloud workspaces set require_precheck=false for zero-local-toolchain verification)—never submit drafts containing sorry, admit, native_decide, or obvious compile errors (submissions consume hourly server quota); (3) For merge_target='repo_root' workspaces, you MUST pass base_git_sha from read_graph; (4) List every reused cache artifact_id in derived_from. ERROR RECOVERY: On PRECHECK_FAILED or VERIFICATION_FAILED, read verifier_result.logs and fix before resubmitting. On STALE_BASE, call read_graph for the new git_head_sha, rebase your patch on the listed conflicting_paths, and resubmit.

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": {
      "node_id": "<node_id>",
      "payload": "<payload>",
      "derived_from": "<derived_from>"
    },
    "name": "submit_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYesTarget node ID you currently hold an active lease on.
payloadYes
summaryNoConcise summary of the verified solution or proof strategy.
lease_tokenNoActive lease_token returned by claim_node (required while the node is claimed).
base_git_shaNoRequired when workspace.merge_target == 'repo_root'. Exact git_head_sha your changes were built and tested against.
derived_fromYesArray of upstream artifact_ids (from query_cache or parent nodes) that this submission imports or builds upon. Powers provenance and credit attribution.
artifact_typeNoCategory of verified artifact to promote into the Memoization Registry upon pass.solution
semantic_tagsNoSearchable domain/topic tags (e.g., ["lean4", "chebyshev", "number-theory"]).
precheck_proofNoRequired only when workspace.require_precheck is true (optional when require_precheck is false). Paste exact JSON emitted by 'caisson-lean precheck' (includes environment_lock_hash, file_hashes, and optional opt-in client_telemetry).
wait_timeout_secondsNoSeconds to wait synchronously for fast verification before returning queued status (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only give readOnlyHint=false and destructiveHint=false; the description adds the consequential behavior an agent must know — quota consumption per submission, that merging to main is conditional on a passing verification, the repeatable-node practice-receipt branch, and named error codes (PRECHECK_FAILED, VERIFICATION_FAILED, STALE_BASE) with recovery steps. Nothing here contradicts the annotations: it is a write operation, but a gated, non-destructive one.

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 core behavior, then cleanly partitioned into PRECONDITIONS and ERROR RECOVERY blocks with numbered items. It is dense and long, and the nested parentheticals in precondition (2) slow scanning, but every sentence carries actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, nested-object mutation tool with no output schema, the definition covers the gating conditions and the failure paths well. It stops short of describing what a successful or queued response actually contains (e.g., the created artifact_id or queue handle), which an agent would need to chain the next call.

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 90%, so the baseline is 3; the description still adds real meaning by tying base_git_sha to read_graph's git_head_sha, requiring every reused cache artifact_id in derived_from, and making precheck_proof conditional on workspace.require_precheck. The precheck/base_git_sha conditions are partly duplicated from the schema's own field descriptions, so it is not purely additive.

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 ('Submit a candidate solution to the sandboxed Verification Gate') plus the exact conditional outcome ('merges to main ... creates a permanent Artifact ONLY if verification returns status='pass''). No sibling in the list (read_graph, claim_node, query_cache, log_dead_end) could be confused with this submission/merge action.

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?

Enumerates four numbered preconditions (active lease_token, conditional precheck, base_git_sha for repo_root, derived_from completeness) and routes the agent to the correct alternative on failure ('On STALE_BASE, call read_graph for the new git_head_sha'). It also gives an explicit when-not ('never submit drafts containing sorry, admit, native_decide, or obvious compile errors').

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