Skip to main content
Glama

legalize_laws_all

Search and list laws by country with automatic pagination, returning raw page payloads and a flattened results list.

Instructions

Search/list laws within a country, automatically paging until exhaustion or max_pages. Returns raw page payloads plus a best-effort flattened list when the API returns an array or a {items|data|results} container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNo
yearNo
statusNo
countryYes
law_typeNo
per_pageNo
max_pagesNo
start_pageNo
jurisdictionNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses significant behaviors: paging automatically, stopping at max_pages, returning raw payloads, and providing a flattened list conditionally. It omits error handling, rate limits, and permission requirements, but for a search tool this is reasonably transparent.

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?

The description is two sentences, front-loads the primary purpose, and every phrase carries meaning. No filler or repetition, making it highly efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the description covers paging and output shape, it does not explain defaults, filter interactions, or the exact meaning of 'best-effort', and there is no output schema to fill gaps. With 9 parameters and no annotations, the description is insufficient for complete operational context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description only indirectly references 'country' and 'max_pages'. It does not explain q, year, status, law_type, per_page, start_page, or jurisdiction, leaving the agent without crucial semantics for a tool with 9 parameters.

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?

The description states a clear action ('Search/list laws within a country') and a distinct behavior (automatic paging until exhaustion or max_pages). It differentiates from the sibling legalize_laws through the '_all' name and the explicit paging mention, though it does not directly name the alternative.

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?

The description implies this tool is for exhaustive law listing/searching, but it does not provide explicit guidance on when to use it versus legalize_laws or other siblings. No exclusions or alternative conditions are stated, leaving usage context only implied.

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/pugafran/lawyer-mcp'

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