Skip to main content
Glama

sign_contract

Append your consent to a contract using a wallet signature or account authentication. When the last required signer signs, the contract is executed and witnessed.

Instructions

Append your consent to a contract (one entry on its hash chain). FREE. Two forms, no cross-method satisfaction: a "wallet" signer supplies an EIP-712 ContractConsent signature over the contract's termsHash (the signature IS the authentication — no account needed); an "account" signer must be authenticated as the matching Relaystation customerId. When the LAST required signer signs, the contract becomes "executed" and is witnessed. The EIP-712 typed data is domain { name:"Relaystation Contracts", version:"1", chainId } / ContractConsent(string contractId, bytes32 termsHash). Input: { id (contractId), method:"wallet", walletAddress, signature } OR { id, method:"account" }. Returns the updated contract view. Example: sign_contract {id:"", method:"account"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
methodYes
signatureNo
walletAddressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and it delivers: it discloses that wallet signing needs no account, that the signature itself is the authentication, that the last required signer triggers execution and witnessing, and that the call returns the updated contract view. It also reveals the exact EIP-712 domain/type, which is far beyond the schema's capability.

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

Conciseness5/5

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

Dense but efficient: the core purpose is front-loaded, and every subsequent sentence adds a necessary constraint, authentication detail, data shape, or return value. The example at the end is a practical summary rather than repetition.

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 tool with no annotations and no output schema, this is unusually complete. It explains the two authentication paths, the hash-chain effect, the EIP-712 payload shape, the threshold side effect (executed/witnessed), and the return value. Remaining details like precise error handling are not essential for a competent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description fully compensates by mapping 'id' to contractId, explaining the 'method' enum's two modes, and specifying that walletAddress and signature are required for the wallet form while only id and method are needed for the account form. The example reinforces these parameter shapes.

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?

Opens with a specific verb+resource ('Append your consent to a contract') and immediately defines the artifact as an entry on the contract's hash chain. It also distinguishes two signing methods, which separates it from the sibling create_contract (creation vs. signing). The purpose is unmistakable.

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?

Clearly explains when to use the wallet method vs the account method and the authentication expectations for each, including the 'no cross-method satisfaction' constraint. It does not name alternative sibling tools explicitly, but the method-selection guidance is concrete enough for choosing the correct call.

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