Skip to main content
Glama

Search Primary Legal Documents

dclo_search_documents
Read-onlyIdempotent

Search 4,790+ catalogued primary legal documents—court orders, rulings, ordinances, and EIA decisions—by keyword, document type, jurisdiction, language, or dispute ID.

Instructions

Search across 4,790+ catalogued primary legal documents (court orders, regulatory rulings, municipal ordinances, EIA decisions, filings) by keyword, doc_type, jurisdiction, official_only, language, or dispute_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dclo_search_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoKeyword search across title, issuing body, parties, legal bases, summary, and holding.
offsetNo
doc_typeNoDocument type filter (e.g. "judgment", "order", "complaint", "permit", "ordinance", "decision").
languageNoDocument language filter (e.g. "en", "es", "fr", "it").
dispute_idNoRestrict documents to one DCLO-XXXX dispute ID.
jurisdictionNoJurisdiction country or ISO-2 code.
official_onlyNoReturn only verified official primary copies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds genuinely useful context about corpus scope (4,790+ catalogued documents and the types covered), but says nothing about result ordering, ranking, or what a call with no filters returns. Net: some added value over annotations, but not rich behavioral detail.

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 front-loaded sentence with no throat-clearing; the verb and resource come first and the filter list follows. The filter enumeration partially restates the schema, which keeps it from being maximally efficient, but nothing is wasted.

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

Completeness3/5

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

With eight parameters and zero required, the key open question — what does a call with no query or filters return, and in what order — is unaddressed. Annotations and schema carry the rest, and there is no output schema to explain, but the default-behavior gap is material for a search tool.

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 75%, so the schema already explains query, doc_type, language, dispute_id, jurisdiction, and official_only semantics. The description merely re-lists those filter names without adding meaning such as how multiple filters combine, whether matching is AND/OR, or what limit/offset defaults apply. Baseline 3 is appropriate where the schema does the heavy lifting.

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 (Search) plus the resource (primary legal documents) and enumerates the corpus contents — court orders, regulatory rulings, ordinances, EIA decisions, filings — which clearly separates it from dclo_search_disputes. It stops short of naming a sibling or an explicit boundary, so it is strong but not maximally differentiated.

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 lists the dimensions you can search by, which implies typical usage, but gives no when-to-use vs when-not guidance, no mention of how it relates to dclo_cite or dclo_compare, and no prerequisites. An agent can infer this is the discovery entry point, but must infer it.

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