Skip to main content
Glama

Write your bar as a rule

require
Idempotent

require(words="at least 90% of at least 50 settled jobs") → the exact rule, its read-back and hash; then check(subject, rule=). 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}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "require"
  }
}

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.1/5.0
Behavior4/5

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

With annotations covering read-only, destructive, and idempotency hints, the description adds useful behavior: it is free, returns the exact rule, plain-English read-back, hash, publishability, and suggestions, and has a defined error shape of {error, field, got, reason, fix}. It does not fully explain publication side effects or auth requirements beyond what the schema provides.

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?

The description is information-dense and front-loads the key example and call sequence. It is somewhat run-on and repeats the instruction to call check(subject, rule=<the rule>), but most sentences earn their 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?

For a tool with six parameters, nested rule input, and no output schema, the description covers the essential return values, error format, free usage, and follow-up action. It leaves some publication and auth details to the schema, which is reasonable given the high schema coverage.

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 83%, so the schema already does most parameter documentation. The description adds a useful equivalence between words= and rule= and gives an example, but it does not add much beyond the schema for publish, visibility, name, or api_key.

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 states a specific transformation: turn a bar expressed in words or JSON into an exact rule with read-back and hash. It also distinguishes the tool from its follow-up by saying to use it before calling check(subject, rule=<the rule>).

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?

It gives clear when-to-use guidance: 'Call when you know what you need from a counterparty and want it as an exact rule before you check anyone,' and names check as the next step. It does not provide explicit when-not-to-use conditions or discuss the other siblings.

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.