Skip to main content
Glama

sign_action

Sign an action envelope with Ed25519 identity to create verifiable provenance for CI, IaC, DB migrations, API calls, contract deploys, or agent delegation.

Instructions

Sign a universal provenance action envelope with the active Ed25519 identity.

Use for CI steps, IaC changes, DB migrations, API calls, contract deploys,
release manifests, or agent delegation grants. Typed actions (ci_step, etc.)
validate payload fields before signing. Side effects: writes ``save_path`` when set.
Returns ``{ok, signed, device_id, mode}`` with the RFC 8032 signature block attached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesJSON object to sign. Keys are canonicalized before Ed25519 signing per SPEC.md §4. Do not include a top-level signature block.
key_pathNoOptional override for the Matrix Scroll identity store directory (defaults to MATRIXSCROLL_HOME or ~/.matrixscroll). Use for CI ephemeral keys.
save_pathNoOptional file path to write the signed document. When empty, returns JSON only.
action_typeYesProvenance action type: git_commit, ci_step, iac_change, db_migration, api_call, contract_deploy, or custom labels for evidence packs. Typed actions validate required payload fields per schemas/action-envelope.v1.json.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full burden. It discloses side effects (writes save_path when set), return format (tuple with signature block), and constraints (canonicalization, no top-level signature block). It does not discuss authentication or error handling, but the level of detail is good.

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?

Three sentences: first states core purpose, second lists use cases, third covers side effects and return format. No wasted words, front-loaded with key 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?

Given 4 parameters (2 required), nested payload object, and output schema exists, the description adequately explains the signing process, validation for typed actions, side effect, and return. It lacks error scenarios and auth details, but the presence of output schema reduces the need to describe return structure.

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 baseline is 3. The description adds extra meaning: canonicalization per SPEC.md §4, caution against including signature block, and context for action_type (e.g., 'Typed actions validate required payload fields'). This elevates it above baseline.

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?

The description clearly states the tool signs a universal provenance action envelope with the active Ed25519 identity. It lists specific use cases (CI steps, IaC changes, etc.) and distinguishes typed actions that validate payload fields. This purpose is unique among siblings like verify_envelope or create_envelope.

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?

Explicit use cases are provided (CI steps, DB migrations, etc.), and it mentions that typed actions validate payload fields before signing. However, it does not explicitly state when not to use this tool or mention alternatives, though the context is clear enough for an AI agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SSX360/matrixscroll'

If you have feedback or need assistance with the MCP directory API, please join our Discord server