Skip to main content
Glama

Explain Rule

explain_rule
Read-onlyIdempotent

The orthography rules check_orthography applies and the parts of the rulebook that match a query (Slovenski pravopis 2001 for sl, Hrvatski pravopis IHJJ 2013 for hr, Pravopis srpskoga jezika, Matica srpska 2010 for sr): rule, where it stands in the book, a paraphrase, and how reliable the check is. Use it to justify a correction to the user. The rulebooks are paraphrased, not quoted.

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": {
      "query": "<query>"
    },
    "name": "explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNosl Slovenian, hr Croatian, sr Serbiansl
queryYesA rule id (s_z), a § number (683), a page (25, Croatian), a point (t. 124, Serbian) or a word (vejica, zarez, zapeta, comma)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "default": "sl",
      +  "description": "sl Slovenian, hr Croatian, sr Serbian",
      +  "enum": [
      +    "sl",
      +    "hr",
      +    "sr"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"A rule id (s_z), a § number (683) or a word (vejica, comma, velika začetnica)"New value: +"A rule id (s_z), a § number (683), a page (25, Croatian), a point (t. 124, Serbian) or a word (vejica, zarez, zapeta, comma)"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/closed-world, so the bar is lower; the description still adds non-obvious context: the rulebooks are paraphrased rather than quoted, and each result carries a reliability indicator. That tells the agent how authoritative the output is and that it cannot be cited verbatim — information absent from 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.

Conciseness4/5

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

Front-loads what the tool returns before the usage note and the paraphrasing caveat, and every clause carries information. The parenthetical list of rulebooks is dense but justified since those editions are the authoritative sources the agent may need to name.

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?

An output schema exists, yet the description still tells the agent the shape and limits of the answer (paraphrase, not quotation; reliability rating), which is the key thing an agent needs to caveat results to a user. Complete for a two-parameter lookup with full 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 coverage is 100% and the schema already spells out the query formats (rule id, § number, page, point, word), so the description adds little about parameters. It does implicitly explain the lang default by mapping each code to a national rulebook, which is marginal added value over the schema baseline.

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?

Names a specific verb+resource ('explain_rule') and states exactly what it returns: the rule, where it stands in the book, a paraphrase, and check reliability. It also names the exact source references per language code (Slovenski pravopis 2001, Hrvatski pravopis IHJJ 2013, Pravopis srpskoga jezika), which no sibling tool does.

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 use case — 'Use it to justify a correction to the user' — and ties itself to the sibling check_orthography whose rules it explains. No explicit when-not or statement that it does not perform checking itself, but the routing intent is unambiguous.

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.

Resources