Skip to main content
Glama
adamselzer

rules-as-code-mcp

by adamselzer

Explain determination

explain_determination

Retrieve a step-by-step trace of a past eligibility determination by ID, revealing the rules that fired, the inputs used, and the legal citation for each step.

Instructions

Return a plain, step-by-step trace of a prior determination by its id: which rules fired, what they saw, and the citation behind each. Requires the caseworker scope. Use the determination_id returned by check_program_eligibility.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
determination_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsYes
programYes
summaryYes
decisionYes
ruleset_versionYes
determination_idYes
Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses a permission requirement (caseworker scope) and describes the output style (plain, step-by-step). It doesn't mention side effects, but the nature of 'explain' implies read-only behavior, which is acceptable.

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?

Two sentences with no wasted words. The purpose is front-loaded, and each sentence adds essential information (what it does, prerequisite, source of ID).

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?

Given the tool's simplicity (one parameter, output schema present), the description covers purpose, usage, permissions, and integration guidance. The existence of an output schema means return values need not be described.

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?

The schema has no description for determination_id, and schema coverage is 0%. The description compensates by explaining the parameter is a prior determination id returned by check_program_eligibility, giving practical provenance and usage context.

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 uses a specific verb 'Return' with a clear resource 'a plain, step-by-step trace of a prior determination' and lists what the trace contains (rules fired, inputs, citations). This clearly distinguishes it from siblings like check_program_eligibility.

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 states the prerequisite (caseworker scope) and instructs the user to use the determination_id from check_program_eligibility, which implies when to use this tool. It doesn't explicitly contrast with alternatives but provides strong contextual guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamselzer/rules-as-code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server