Skip to main content
Glama

Send the waiting signafAIde records now

signafaide_flush
Idempotent

Sends queued audit records from a project’s outbox to the signafAIde service or witness and saves returned receipts; use when records are waiting after an API key has been set.

Instructions

Sends the records waiting in this project's outbox to the signafAIde service (or the SIGNAFAIDE_URL witness) now, the same as signafaide flush, and saves the receipts that come back beside the records. What is sent is each record's envelope (hashes, agent and tool names, times) with the agent's signature, never inputs or outputs unless stored content was turned on in the code. Use it after signafaide_init, or when signafaide_status shows records waiting. Records also ship by themselves while the agent runs, and signafaide_verify ships them before it checks; this tool only ships. It sends only when an API key already exists, which means a person opted in with signafaide init, signafaide_init or SIGNAFAIDE_API_KEY. Without a key it does nothing and says so: it never creates a sandbox and never opts in. Returns how many records were shipped, how many are left in the outbox, each chain that is BLOCKED with its next step, and each error with its code (see signafaide_explain_error). Safe to repeat: a record that has shipped is not sent again.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "signafaide_flush"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNoPath of the project to work on: the folder the MCP server was started in, or one below it. Default: that folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.3

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing exactly what payload leaves the machine (envelope hashes, agent/tool names, times, signature) and that inputs/outputs are excluded unless stored content was enabled. It documents the auth prerequisite, the no-op behavior without a key, the return contents (shipped count, remaining outbox, BLOCKED chains with next step, error codes), and the retry-safety semantics, which reinforces rather than contradicts idempotentHint.

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?

The action and its scope are front-loaded, and most sentences carry distinct information. The API-key prerequisite is stated twice in adjacent clauses ('which means a person opted in...' and 'Without a key it does nothing and says so'), which is mild redundancy in an otherwise dense, well-ordered block.

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?

With no output schema, the description carries the return values itself: shipped count, remaining outbox, BLOCKED chains, and coded errors routed to signafaide_explain_error. Combined with the payload disclosure and the prerequisite, an agent has everything needed to call it correctly and interpret the result.

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

Parameters3/5

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

Schema coverage is 100% for the single optional `directory` parameter, so the schema already documents path scoping. The description only gestures at project scoping with 'this project's outbox' and adds no format or constraint detail about the directory argument.

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 (sends the records waiting in this project's outbox to the signafAIde service) and equates it to the CLI command `signafaide flush`. It explicitly separates itself from the two nearest siblings: records ship automatically while the agent runs, and signafaide_verify ships them before checking, whereas this tool only ships.

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?

Gives both trigger conditions ('after signafaide_init, or when signafaide_status shows records waiting') and the negative condition (no API key means it does nothing and never creates a sandbox or opts in). It also names sibling behaviors so an agent knows when another tool will already have flushed the outbox.

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