Skip to main content
Glama

Refine a legal question

refine_legal_query
Read-onlyIdempotent

Restates one Australian legal question and lists the clarifying questions still open: state or territory, dates, parties, forum, output and urgency.

Input Schema

NameRequiredDescriptionDefault
areaNoOptional practice-area id. Omitted means the question is classified from its words.
queryYesThe legal question, with client names and contact details removed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so safety needs no restating. The description earns credit by disclosing the return shape (a restatement plus enumerated open questions covering jurisdiction, dates, parties, forum, output, urgency) which matters because there is no output schema.

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?

A single well-formed sentence with the core behavior front-loaded and the enumerated dimensions carrying real information rather than filler. Could be marginally tighter, but no sentence is wasted.

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 two-parameter, non-destructive read tool with rich annotations and no output schema, the description covers what it produces and over what dimensions. It is slightly thin on whether the query is anonymized before use (only in the schema) and on what the agent should do with the open questions next.

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%, so both parameters are already documented, including the important PII-stripping requirement on `query` and the enum on `area`. The description adds nothing beyond 'Australian legal question', which is already implied by the title; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('restates') and resource ('one Australian legal question') plus the secondary output (open clarifying questions). It is clearly distinguishable from research-oriented siblings like find_rules or get_precedent, though it never names a boundary against planner tools such as start_task or get_practice_area_prompt.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the description suggests this is a first-pass triage step before research, but gives no explicit trigger, no exclusion, and no named alternative. An agent can infer 'refine before you research' but must guess the handoff point.

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