Skip to main content
Glama

Get Surrounding Provisions

legal_get_context
Read-onlyIdempotent

Get adjacent norms (paragraphs/articles) before and after a target provision in document order. Use when a legal question may span consecutive provisions or when surrounding context is needed to understand a norm's scope.

Requires a norm_id from a prior legal_search or legal_lookup result. Returns the target norm plus up to 10 neighbors in each direction. For a law-wide overview rather than just neighbors, use legal_get_toc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoNumber of norms after the target (max 10).
beforeNoNumber of norms before the target (max 10).
norm_idYesnorm_id from a prior legal_search or legal_lookup result.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds meaningful behavioral details beyond that: it states the return includes the target norm plus up to 10 neighbors in each direction, and it explicitly requires a norm_id from a prior result. No contradiction exists.

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 compact and efficient. Every sentence serves a purpose: purpose, usage context, prerequisite, return behavior, and an explicit pointer to an alternative tool. No filler or redundancy.

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?

Despite having an output schema, the description covers prerequisite (norm_id), return scope (target plus neighbors), and a clear alternative for broader context. For a tool of this complexity, it is complete and leaves no critical gaps for an agent to guess.

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?

The input schema already provides complete descriptions for all three parameters (norm_id, before, after) with ranges and defaults. The description reinforces the 'up to 10 neighbors' concept but adds little beyond the schema. Baseline of 3 is appropriate due to full schema coverage.

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 explicitly names the action ('Get adjacent norms'), the object (paragraphs/articles before and after a target provision), and the ordering ('document order'). It also distinguishes itself from the sibling tool legal_get_toc by noting the alternative for law-wide overview.

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

Usage Guidelines5/5

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

It provides clear when-to-use context: 'Use when a legal question may span consecutive provisions or when surrounding context is needed to understand a norm's scope.' It also names the alternative tool (legal_get_toc) and requires a prior norm_id from legal_search or legal_lookup, setting expectations for prerequisites.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each legal tool targets a distinct operation: finding citing decisions, retrieving context, legislative history, stats, TOC, law lists, and exact lookups. The batch lookup is clearly a convenience wrapper for the single lookup, and the generic resource tools are unmistakably separate from the legal research functions.

Naming Consistency5/5

All legal tools follow a consistent 'legal_' prefix plus verb_noun pattern (e.g., legal_find_citing_decisions, legal_get_context, legal_list_laws). The two generic MCP tools also follow verb_noun (list_resources, read_resource), maintaining overall consistency.

Tool Count5/5

With 11 tools, the server is well-scoped for a comprehensive legal research domain. Each tool provides a distinct capability, and none feels redundant or excessive. The count is within the ideal 3-15 range.

Completeness4/5

The tool set covers the core legal research lifecycle: discovery (list_laws, search), lookup (lookup, lookup_batch), citation analysis (find_citing_decisions), structural navigation (get_toc, get_context), and legislative intent (get_materials). Minor gaps exist, such as the lack of coverage for certain state court decisions and non-German legislative materials, but these are explicitly documented and workarounds are provided.

Resources