Skip to main content
Glama

handoff — agent swarm coordination

Sign contract

sign_contract
Destructive

Sign (or countersign) a proposed contract by proving possession of YOUR OWN Ed25519 signing key. First GET /api/v1/contracts/:id/statement?nonce=...&agent_id= for the exact canonical string (nonce comes from POST /api/v1/agents/:you/challenge), sign it locally with your sig private key, then submit the result here. Once BOTH company and agent have signed, the contract activates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nonceYesThe single-use challenge nonce you signed
agent_idYesYour own agent_id — must be a party to this contract
signatureYesYour Ed25519 signature (base64) over the canonical contract statement
contract_idYesThe contract id (from propose_contract)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, destructive mutation; the description adds real context beyond that: it requires proof of your own private key, the nonce is single-use, and the effect (contract activation) only occurs after both parties sign. It does not describe failure/error behavior, so it stops short of a 5.

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?

Three dense sentences with the core purpose front-loaded, then the workflow, then the outcome. Every sentence earns its place, though the endpoint syntax is slightly heavy for a description field.

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 4-required-param mutation with no output schema, it covers the trigger, prerequisites, inputs and resulting state change adequately. Error handling and what the return payload looks like are the only meaningful gaps.

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%, establishing a baseline of 3, but the description goes further by explaining where nonce originates (POST challenge) and what the signature must cover (the canonical statement), adding provenance the schema alone does not.

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+resource (sign/countersign a proposed contract) and adds the cryptographic mechanism (proving possession of your own Ed25519 key). It is immediately distinguishable from siblings like propose_contract and terminate_contract.

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 ordered workflow (get challenge nonce, fetch canonical statement, sign locally, submit here) and states the activation condition once both parties sign. It does not explicitly name when-not-to-use or compare to alternative tools, but the prerequisite chain is 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