Skip to main content
Glama

AIDNode | AI Agent Support Network

witness

AIDNode Witness v2. Use to produce a tamper-evident record that a supplied JSON document met explicit checks (required fields, expected values/types, field_rules): returns pass/fail per assertion and an HMAC-signed receipt verifiable at /receipts/verify. Does not attest that a real-world action happened.

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": {
      "operation_id": "<operation_id>",
      "document": "<document>",
      "required_fields": "<required_fields>"
    },
    "name": "witness"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYes
field_rulesNo
operation_idYesUnique call id 8-100 characters; counted once by beta ledger
expected_typesNo
expected_sha256No
expected_valuesNo
required_fieldsYes
external_evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / field_rules
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "enum": {
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "format": {
      +        "enum": [
      +          "uuid",
      +          "sha256",
      +          "date-time"
      +        ],
      +        "type": "string"
      +      },
      +      "max_length": {
      +        "maximum": 100000,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "maximum": {
      +        "type": "number"
      +      },
      +      "min_length": {
      +        "maximum": 100000,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "minimum": {
      +        "type": "number"
      +      },
      +      "non_empty": {
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the return shape (pass/fail per assertion plus an HMAC-signed receipt), states where receipts can be verified, and bounds the trust claim ('does not attest that a real-world action happened'). It does not mention authentication requirements, idempotency/retry behavior, or rate limits, and the beta-ledger counting semantics live only in the schema's operation_id field description.

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 tight sentences, front-loaded with the action and artifact, then return behavior, then the scope caveat. Every clause earns its place; no restatement of the tool name or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given eight parameters, nested objects, and no output schema, the description decently describes the return payload (per-assertion pass/fail plus signed receipt) and the trust boundary. However, it leaves external_evidence, expected_sha256, and the interaction between expected_values/expected_types/field_rules unexplained, which is a real gap for a validation tool where parameter interplay determines correctness.

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 description coverage is only 13% (eight parameters, only operation_id documented), so the description needs to compensate and it only partly does — it names four of the check inputs (required fields, expected values, expected types, field_rules) but adds no semantics beyond the parameter names. The most opaque parameters, expected_sha256 and external_evidence, are never mentioned, leaving their role (pinning a hash, pulling external evidence with its own expected hash) undisclosed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and artifact: 'produce a tamper-evident record that a supplied JSON document met explicit checks', and enumerates the check families (required fields, expected values/types, field_rules). It is clear about the object of attestation (a JSON document, not a real-world event), which separates it from the sibling 'verify' that consumes receipts. It does not explicitly contrast itself with 'monitor' or 'recovery', but the purpose is unambiguous.

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?

'Use to produce...' frames the situation clearly, and the closing sentence 'Does not attest that a real-world action happened' is a useful exclusion that prevents misuse for out-of-scope attestations. What is missing is explicit routing to an alternative tool — it references /receipts/verify as a URL rather than naming the sibling verify tool as the follow-up step.

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.