Skip to main content
Glama

Explain a signafAIde ruling on a tool call

signafaide_explain_ruling
Read-onlyIdempotent

Explains why an AI agent tool call was allowed, noted or blocked: matched rules, witness ruling, rule set version and undisclosed fields. Give a record hash to see how to allow the call.

Instructions

Explains why a tool call was allowed, noted or blocked: the client's tool-call checks, the witness's ruling (allow or block, mode, basis), the rules that matched, the rule set version, the fields that were not disclosed, and how to allow the call. Pass the record hash (or its first 8 or more characters) of the call's decision or outcome, from signafaide_records. Pass pack to read a verification pack instead of the local records. Read-only: it reads local files, makes no request and changes nothing. It never prints a disclosed value, only field pointers, rule ids, codes and versions. It does not re-verify the record (use signafaide_verify); to see all the rules held, use signafaide_show_rules.

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": {
      "record": "<record>"
    },
    "name": "signafaide_explain_ruling"
  }
}

Input Schema

NameRequiredDescriptionDefault
packNoPath of a verification pack (from `signafaide export` or an auditor link) to read the record from, instead of the local records.
recordYesA record hash, or its first 8 or more characters: a decision or its outcome.
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.5.7

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is pre-established. The description still adds real context: it reads local files, makes no request, changes nothing, never prints a disclosed value (only field pointers, rule ids, codes, versions), and does not re-verify the record. Those are useful disclosures beyond the annotations, though they largely restate the read-only profile rather than reveal new failure modes or output structure.

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 purpose and the output contract, with behavioral caveats last. The opening enumeration is long but each item is a distinct thing the agent learns it will receive; a few clauses ("Read-only: it reads local files, makes no request and changes nothing") overlap with the annotations and could be trimmed.

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?

No output schema exists, and the description compensates by enumerating what the explanation contains and what it deliberately omits (no disclosed values, only pointers). For a read-only diagnostic tool with three mostly-optional parameters, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so the baseline is 3; however the description adds provenance the schema does not: the hash comes from signafaide_records and refers to "the call's decision or outcome," and pack is tied to `signafaide export` or an auditor link. The `directory` parameter is left entirely to the schema, keeping this short of a 5.

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?

Specific verb plus resource: "Explains why a tool call was allowed, noted or blocked," followed by an enumeration of the exact content of the explanation (client checks, witness ruling, mode, basis, matched rules, rule set version, undisclosed fields, remediation). It also names two siblings it is not (signafaide_verify, signafaide_show_rules), so an agent can separate it from them without opening a schema.

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 the concrete prerequisite ("Pass the record hash (or its first 8 or more characters)... from signafaide_records"), the alternate mode ("Pass pack to read a verification pack instead of the local records"), and explicit exclusions routing to signafaide_verify for re-verification and signafaide_show_rules for the full rule set. When-to-use, when-not-to-use, and alternatives are all present.

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