Skip to main content
Glama

Full-text search across the corpus

search_legislation
Read-onlyIdempotent

Ranked full-text search over provision text. Results carry work, eId, status and provenance — feed a hit's work+eId to lookup_provision for the complete payload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum hits, default 10.
queryYesSearch terms, e.g. 'zero-rating of food'.
languageNoRestrict to a text language, e.g. 'eng'.
jurisdictionNoISO country filter, e.g. 'UK', 'FR', 'EU'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "The JSON response from the corresponding Lexiara API route.",
      +  "type": "object"
      +}
  2. 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 readOnlyHint, idempotentHint, and destructiveHint, so safety is covered. The description adds value beyond annotations by disclosing that results are ranked and by listing the result fields (work, eId, status, provenance), plus the relationship to lookup_provision.

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, no filler; the first sentence states the core behavior and scope, and the second adds return-field context and a downstream pointer. Every clause earns its place.

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 full schema coverage, safety annotations, and an output schema present, nothing essential is missing for selecting and invoking this tool. The description covers ranking, result contents, and how to get the complete payload.

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 description coverage is 100%, so the input schema already documents all four parameters. The description does not add parameter-specific meaning beyond saying the search is full-text over provision text, so the baseline 3 is appropriate.

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 opens with a specific verb and object: 'Ranked full-text search over provision text.' This clearly differentiates it from siblings like lookup_provision and the generic search by defining both the resource (provision text) and the behavior (ranked full-text).

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?

It provides clear context: this is a ranked full-text search, and it gives an explicit downstream instruction to feed a hit's work+eId to lookup_provision for the complete payload. It does not enumerate exclusions or when-not conditions, but the workflow guidance is enough to route an agent correctly.

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