Skip to main content
Glama

Counterfoil

Get rule

get_rule
Read-onlyIdempotent

Read one stored EU e-invoice rule by id. Returns the stored statement, context, test, plain reading, fix, and source URL. Does not check an invoice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesA stored rule id, such as BR-01 or BR-IC-05.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real value beyond that by enumerating what comes back (statement, context, test, plain reading, fix, source URL) and clarifying this is pure lookup, not validation.

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 short sentences, front-loaded with the verb and resource, then return contents, then the exclusion. Every sentence earns its place with no filler.

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 no output schema, the description compensates by listing the returned fields, and with only one fully-documented parameter there is nothing else an agent needs. Complete for a simple by-id lookup.

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 single parameter's pattern, max length, and id format are fully documented in the schema. The description's 'by id' adds nothing beyond it, so baseline 3 applies.

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?

Specific verb+resource ('Read one stored EU e-invoice rule by id') plus an explicit boundary statement ('Does not check an invoice') that separates it from the check_invoice sibling. An agent knows exactly what this retrieves without opening the schema.

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 negative guidance ('Does not check an invoice') is a genuine when-not that routes the agent away from the wrong sibling. However, it never names search_rules as the alternative for when the id is unknown, leaving discovery-vs-lookup selection to inference.

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