Skip to main content
Glama
Hardik-Singh

Invariance MCP

Official
by Hardik-Singh

invariance_case_close

Close a case with an outcome, setting its status to closed and recording the realized dollar value or loss.

Instructions

Close a case with an outcome — the common path. Equivalent to invariance_case_update with status="closed" + outcome + outcome_value_usd.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
outcomeYese.g. "approved", "denied", "escalated", "auto_resolved".
closed_atNoISO-8601 close time. Defaults to now.
value_usdNoRealized $ value (positive) or loss (negative).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already convey that this is neither read-only nor destructive. The description adds that it closes a case by setting status to 'closed' and applying outcome fields, which is useful but does not cover reversibility, side effects, or permissions. It provides moderate additional context without contradicting the annotations.

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?

A single, tightly written sentence that front-loads the action and uses the equivalence statement to convey meaningful detail without redundancy. Every part earns its place.

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?

This is a simple tool with annotations covering its safety profile and a schema covering most parameters. The description plus schema are sufficient for calling the tool in typical cases, though it does not explain return behavior or edge conditions. Given the tool's simplicitychers, this is nearly complete.

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?

The schema already describes outcome, closed_at, and value_usd, covering 75% of parameters; id is self-explanatory. The description mostly restates outcome and value_usd via the equivalence to invariance_case_update and does not add new parameter-level semantics. Baseline 3 is appropriate given the high schema coverage.

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 identifies the action (close), the resource (case), and the intended purpose (recording an outcome). It also distinguishes itself from invariance_case_update by explicitly framing itself as a specialized equivalent, so an agent can tell them apart.

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 calls this 'the common path' and explicitly names invariance_case_update as its equivalent, providing clear context for when this tool is appropriate. It does not spell out edge cases where update should be used instead, but the common-path framing gives practical guidance.

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