Skip to main content
Glama
Hardik-Singh

Invariance MCP

Official
by Hardik-Singh

invariance_workflow_event_create

Record semantic workflow events (e.g., refund.issued) on a case to link evidence and external refs, with idempotency keys for safe retries.

Instructions

Record a semantic workflow event on a case (e.g. "refund.issued", "approval.approved", "human.handoff"). Links case/run/node evidence + external refs and is bridged into DNA. Pass idempotency_key to make external retries safe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesDotted semantic type, e.g. "refund.issued".
case_idYesCase the event belongs to.
payloadNoJSON object of event detail, e.g. {"amount_usd":42,"ticket":"ZD-1001"}.
actor_idNoFree-form actor id (user, run, slack user, ...).
actor_typeNo
occurred_atNoISO timestamp the fact happened. Defaults to now.
evidence_refsNoJSON array of non-node evidence refs, e.g. [{"kind":"ticket","id":"ZD-1001","url":"https://..."}]. Use kind:"external" for external object refs.
idempotency_keyNoDedup key for repeated external events; re-sending returns the original event.
evidence_node_idsNoJSON array of node ids in the runs/nodes evidence layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false (write) and destructiveHint=false, but the description adds valuable behavioral context: it links case/run/node evidence and external refs, bridges into DNA, and advises passing idempotency_key for safe retries. This goes beyond the annotations without contradicting them.

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 concise sentences with no fluff. The primary action and examples are front-loaded, and the idempotency note is placed last. Every sentence earns its place, and the description is well-structured.

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?

For a write operation with 9 parameters and no output schema, the description covers the essential aspects: purpose, evidence linking, DNA bridging, and retry safety. It doesn't detail every parameter, but the schema handles that. It could mention return value, but that's minor for a write tool.

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 89%, so most parameters have descriptions. The description adds extra value by highlighting idempotency_key for safe retries and providing example event types, which aids in correct usage. It doesn't repeat schema details but adds meaningful guidance.

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 starts with a specific verb and resource: 'Record a semantic workflow event on a case', with concrete examples of event types. It clearly distinguishes this tool from siblings by emphasizing 'workflow event' and its DNA bridging, making it 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?

The description gives clear context: when to record a semantic workflow event, and how it links evidence and is bridged into DNA. It doesn't explicitly name alternatives like invariance_case_event_create, but the purpose is specific enough that an agent can infer when to use it.

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

Deploy Server

Other Tools