Skip to main content
Glama

Test a write against a list's rules

test_list_rules
Read-onlyIdempotent

A dry run of one write against a list's write rules (or candidate rules), using the list's live data: whether it would be allowed, which statement decided, and what every statement evaluated to. Nothing is written. Describe the write with itemId (the existing item, for update, delete and restore) and new, patch or merge. The token needs update on the list. 1 request, plus 1 per item the rules look up. To check syntax and the stored tests without live data, the JSONPad docs server's check_write_rules costs nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newNoThe item's data after the write
nowNoThe time the rules see as now (ISO 8601)
oldNoThe item's data before the write, instead of itemId's
listYesThe list: its id or pathName
mergeNoA merge applied to the old data to make the new data, instead of new
patchNoA JSON Patch applied to the old data to make the new data, instead of new
rulesNoCandidate rules to test instead of the saved ones
actionYesWhat the write does
itemIdNoThe existing item (for update, delete and restore): its data and metadata are the old state
pointerNoFor a write to part of the data: its JSON pointer
identityIdNoMake the write as this identity

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stageYes
allowedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already say readOnlyHint=true, but the description goes further and matches it precisely: 'Nothing is written', plus it explains the return content (allowed?, which statement decided, all statement evaluations) and discloses cost/rate behavior (1 request plus 1 per looked-up item). This is exactly the extra context annotations cannot provide.

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?

Front-loads the core definition, then consequences, then required inputs, then cost, then the cheaper alternative. Four dense sentences with no filler despite covering a complex tool.

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?

Detailed enough for an 11-param, multi-mode tool: it explains outcome, output shape, permissions, request cost, and an alternative approach. An output schema exists, so the description correctly stops short of enumerating return fields.

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 100% with 11 params, and the description still adds relational meaning beyond it: itemId is tied to update/delete/restore and supplies the old state, while new/patch/merge are framed as alternative write descriptions. Not exhaustive across all 11 params, but meaningfully additive.

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?

States a specific verb (dry run / test) and resource (a write against a list's write rules), and distinguishes intent from siblings: this evaluates rules without writing, versus create_item/update_item which actually mutate. The parenthetical clarification of candidate vs saved rules sharpens the scope.

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?

Tells the agent what it needs (describe the write with itemId and new/patch/merge), what permission is required (update on the list), and names an alternative path (JSONPad docs server's check_write_rules) for syntax-only checks with no live data. No explicit 'do not use for X' exclusion, but routing is clear.

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