Skip to main content
Glama

Write your bar as a rule

require
Idempotent

Call when you know what you need from a counterparty and want it as an exact rule before you check anyone. Write the bar in plain words (words=...) or as structured JSON (rule=..., schema: resource mizan://schemas/requirement-rule-v2.json or https://studio.mizan.market/app/schemas/requirement-rule-v2.schema.json); both give the same rule and the same hash. Returns the exact rule, a read-back in plain English to confirm it means what you meant, its hash, whether it can be published, and suggestions when some words were not understood. Ready-made bars: the library resources (mizan://library/...). Then call check(subject, rule=). Free. Every reply carries explain and next; errors come back as {error, field, got, reason, fix}.

Input Schema

NameRequiredDescriptionDefault
nameNoA name for a published rule (stored beside the rule, outside its hash).
ruleNoOr the same bar as structured JSON: {"core": "mizan-req-core/2", "rule": {...}}. Schema: https://studio.mizan.market/app/schemas/requirement-rule-v2.schema.json (also the MCP resource mizan://schemas/requirement-rule-v2.json). Words and JSON for the same bar give the same rule and the same hash.
wordsNoYour bar in plain words, e.g. "forward record 180 days, sharpe at least 1.3, max drawdown at most 25%, company domain". Words MIZAN cannot read are refused with the reason and suggestions, never guessed.
api_keyNoYour MIZAN key (mzn_…), only to publish. claim_identity() gives one in one call.
publishNoPublish the rule as a versioned requirement others can adopt (needs api_key). Publishable says first whether it can be published today.
visibilityNopublic

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, idempotent, non-destructive, closed-world write; the description goes well beyond that by disclosing the return payload (exact rule, plain-English read-back, hash, publishable flag, suggestions), the publishing path and its api_key requirement, cost ('Free'), and the exact error shape {error, field, got, reason, fix}. The 'same rule and the same hash' claim is consistent with idempotentHint=true and nothing contradicts 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger is reasonably front-loaded, but the description is one dense run-on that re-states schema URLs and resource URIs already present in the input schema and tacks on error-format and 'explain and next' details. Most content earns its place, but the packaging makes it harder to scan than it needs to be.

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 six optional parameters, nested JSON, and no output schema, the description carries the burden well: it explains both input encodings, what is returned, the conditional publish flow and its credential requirement, and the error contract. An agent can call this correctly without opening the schema.

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 already 83%, but the description adds real meaning: words= and rule= are two encodings of the same bar producing the same hash, unreadable words are refused rather than guessed, and api_key is needed only for publishing. It does not clarify name or visibility beyond the schema, keeping it below 5.

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 states a concrete verb and artifact: turn a requirement ('bar') expressed in words or JSON into a canonical rule with a hash. It explicitly routes to the sibling check for the next step. It does not differentiate itself from the other siblings (more, prove), so it falls short of a 5.

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?

Gives a clear trigger ('Call when you know what you need from a counterparty and want it as an exact rule before you check anyone') plus sequencing ('Then call check(subject, rule=<the rule>)') and a ready-made alternative (library resources). No explicit when-not-to-use or contrast with prove/more, so not a 5.

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.