Skip to main content
Glama
Lex-API

LexAPI MCP

Official
by Lex-API

LexAPI MCP

Model Context Protocol server for LexAPI — query EUR-Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP-enabled clients.

Install once, get an API key, and ask your AI assistant: "summarize Article 17 of the GDPR" or "which regulations amend Directive 95/46/EC?" — the model calls LexAPI directly.

Install

You'll need a LexAPI API key. Create one for free at lex-api.com/dashboard (500 credits/month on the FREE tier, no card required).

Claude Desktop

Add to claude_desktop_config.json (location: ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "lexapi": {
      "command": "npx",
      "args": ["-y", "@lexapi/mcp"],
      "env": {
        "LEXAPI_API_KEY": "lex_..."
      }
    }
  }
}

Restart Claude Desktop.

Claude Code

claude mcp add lexapi --env LEXAPI_API_KEY=lex_... -- npx -y @lexapi/mcp

Cursor / other MCP clients

Any client that supports stdio MCP servers can run this. The command is npx -y @lexapi/mcp with LEXAPI_API_KEY in the environment.

Related MCP server: eurlex-mcp-server

Tools

Tool

What it does

lex_search

Structured EUR-Lex search (text, dates, document type, author, language).

lex_get_document

Full parsed document by CELEX — metadata + articles, sections, tables, annexes.

lex_get_metadata

Metadata only (faster than full content).

lex_get_document_by_url

Fetch by EUR-Lex URL (pasted from a browser).

lex_recent_documents

Recent Official Journal publications (default 7 days).

lex_cited_by

Documents citing this CELEX (inbound, typed edges).

lex_cites

Documents this CELEX cites (outbound, typed edges).

lex_citation_network

Both directions in one call.

lex_semantic_case_law

Embedding search over EU case law (paid plans).

lex_semantic_legislation

Embedding search over EU legislation (paid plans).

Configuration

Env var

Default

Purpose

LEXAPI_API_KEY

(required)

Your API key. Get one at lex-api.com/dashboard.

LEXAPI_BASE_URL

https://lex-api.com/api/v1

Override for self-hosted or staging.

Troubleshooting

LEXAPI_API_KEY is not set — the env var isn't reaching the spawned process. Double-check the env block in your MCP client config.

LexAPI error (401 invalid_api_key) — the key is wrong or revoked. Generate a new one at the dashboard.

LexAPI error (429 …) — you hit your daily quota or per-minute rate limit. The server retries once automatically; if you see this in tool output, you're over quota. Upgrade your plan or wait for reset.

LexAPI error (403 …) on semantic tools — semantic search requires a paid plan. FREE tier returns 403 for those endpoints.

Local development

git clone https://github.com/Lex-API/lexapi-mcp.git
cd lexapi-mcp
npm install
npm run build

LEXAPI_API_KEY=lex_xxx node dist/index.js

License

MIT

Available Tools

10 tools
lex_citation_networkA

Fetch both inbound and outbound citations for a CELEX in one call, with per-edge-type counts. Use when the user wants a holistic view of how a document sits in the citation graph.

ParametersJSON Schema
NameRequiredDescriptionDefault
celexNumberYes

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description bears full burden. It states it fetches citations with counts, implying a read operation, but does not disclose details like error handling, rate limits, or what happens if the CELEX is not found. It is adequate but not comprehensive.

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-loading the key action and result. No extraneous words, every sentence adds value.

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 tool with one parameter, no annotations, and no output schema, the description provides the essential information: what it does, when to use it, and what it returns (citations with counts). Could mention pagination or limits but is largely complete.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate. The single parameter 'celexNumber' is explained by context ('for a CELEX'), and the description clarifies its role. It could specify the format but is sufficient for understanding.

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 clearly states the action ('fetch'), the resource ('citations for a CELEX'), and the scope ('both inbound and outbound in one call'). It also mentions per-edge-type counts, distinguishing it from sibling tools like lex_cited_by and lex_cites.

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?

The description gives a clear use case ('when the user wants a holistic view of how a document sits in the citation graph'). It implicitly contrasts with directional siblings but does not explicitly state when not to use it or provide alternatives.

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

lex_cited_byA

Find documents that cite this CELEX (inbound edges). Returns source documents grouped with their edge type (reference, amendment, repeal, implementation, legal-basis, proposal). Use to see who depends on or modifies a given act.

ParametersJSON Schema
NameRequiredDescriptionDefault
celexNumberYes
citationTypeNoOptionally filter to one edge type.
limitNo
offsetNo

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool returns source documents grouped with edge types and lists the possible edge types. This covers key behaviors for a citation query tool, though it omits details like pagination handling or error states.

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: first defines action and output, second gives usage guidance. Every sentence is essential and the purpose is front-loaded. No wasted words.

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?

No output schema exists, so description must explain return values. It does so by stating 'Returns source documents grouped with their edge type' and listing edge types. Parameters celexNumber and citationType are explained. However, pagination (limit/offset) behavior is only in schema, not description. Overall adequate for the tool's complexity.

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 only 25% (only citationType has a description). The tool description explains celexNumber (the CELEX to find citing docs) and mentions citationType for optional filtering. However, it does not describe limit or offset, relying on schema defaults. With low coverage, the description adds moderate value beyond the schema.

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 clearly states the tool finds documents citing a given CELEX (inbound edges) and returns them grouped by edge type. The verb 'Find' and resource 'documents that cite this CELEX' are specific. It distinguishes from siblings like lex_cites (outbound) and lex_citation_network (broader network).

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?

The description includes a usage hint: 'Use to see who depends on or modifies a given act.' This gives context for appropriate use. It does not explicitly exclude alternatives or mention when not to use, but the purpose is clear enough.

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

lex_citesA

Find documents this CELEX cites (outbound edges). Returns target documents grouped with their edge type. Use to see what an act relies on, amends, or implements.

ParametersJSON Schema
NameRequiredDescriptionDefault
celexNumberYes
citationTypeNo
limitNo
offsetNo

TDQS

A3.8/5.0
Behavior3/5

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

No annotations provided, so description carries full burden. It states returns are grouped with edge type and gives usage context, but lacks details about pagination, error handling, or side effects. For a read-only tool, this is adequate but not comprehensive.

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, front-loaded with main action, no wasted words. Efficiently communicates purpose and usage.

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?

Given the tool has 4 parameters, no output schema, and no annotations, description is minimal. It covers core functionality but omits pagination details, response format beyond grouping, and potential errors. Adequate for simple use but not fully complete.

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%, requiring description to compensate. However, description only implicitly refers to celexNumber ('this CELEX') and does not explain citationType, limit, or offset. Parameter names are somewhat self-explanatory but description adds no semantic value.

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?

Description clearly states verb 'Find documents' and specific resource 'this CELEX cites (outbound edges)'. It distinguishes from sibling lex_cited_by by specifying outbound vs inbound, and mentions grouping by edge type.

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?

Description explicitly says 'Use to see what an act relies on, amends, or implements', providing clear context for when to use. Though it doesn't explicitly mention not to use for inbound citations, the term 'outbound edges' hints at the distinction.

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

lex_get_documentA

Fetch the full parsed content of a single EU document by CELEX number. Returns metadata (title, type, dates, author, ECLI/ELI, keywords) plus structured body (articles, sections, tables, annexes). Articles are individually addressable with id, number, title, and content. Use this when the user has a specific CELEX or wants the body of a known document.

ParametersJSON Schema
NameRequiredDescriptionDefault
celexNumberYesCELEX identifier, e.g. 32016R0679 for the GDPR.
bypassCorpusNoForce a fresh live fetch instead of the cached copy.

TDQS

A4.3/5.0
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses return structure comprehensively: metadata fields and structured body with articles, sections, etc. Mentions the 'bypassCorpus' parameter for fresh fetch. Lacks minor details like error handling or rate limits.

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?

Extremely concise at two sentences. First sentence states purpose and output clearly. Second sentence provides usage guidance. No unnecessary words; front-loaded with key information.

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?

For a simple retrieval tool with 2 parameters and no output schema, the description is complete. It explains what it does, when to use it, and what it returns in detail. No gaps for typical use cases.

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% with clear descriptions for both parameters. The description adds context (e.g., 'by CELEX number') but does not significantly extend beyond the schema. 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?

Description clearly states 'Fetch the full parsed content of a single EU document by CELEX number.' It specifies the verb (Fetch), resource (full parsed content), and method (CELEX number). Differentiates from siblings like 'lex_get_metadata' and 'lex_get_document_by_url' by focusing on full document retrieval by CELEX.

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?

Provides explicit usage guidance: 'Use this when the user has a specific CELEX or wants the body of a known document.' However, it does not explicitly state when not to use it or mention alternatives (though sibling names imply them).

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

lex_get_document_by_urlA

Fetch a parsed document from any EUR-Lex URL — useful when the user pastes a link from their browser. Extracts the CELEX from the URL and returns the same shape as lex_get_document plus sourceUrl and extractedCelex echoes.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesAny eur-lex.europa.eu URL containing a CELEX: identifier or uri= parameter.

TDQS

A4/5.0
Behavior3/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 that the tool extracts CELEX from the URL and returns specific fields, but does not mention behavior for invalid URLs, authentication requirements, rate limits, or any side effects.

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 with no wasted words. It front-loads the main action and efficiently communicates the tool's purpose and key differentiator.

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?

Given the tool's simplicity (single parameter, no output schema, no annotations), the description is fairly complete. It explains what it does, when to use it, and how it relates to a sibling. It could mention error handling but is adequate for basic use.

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% with a single parameter already described. The description adds context that the URL must be an eur-lex.europa.eu URL containing a CELEX identifier or uri= parameter, which adds marginal value beyond what the schema already states.

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 clearly states it fetches a parsed document from any EUR-Lex URL, extracts CELEX, and returns the same shape as lex_get_document plus additional echoes. It distinguishes the tool from its sibling lex_get_document by specifying the output differences.

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?

The description explicitly says 'useful when the user pastes a link from their browser', giving clear usage context. However, it does not mention when not to use this tool or provide alternatives beyond implicit comparison to lex_get_document.

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

lex_get_metadataA

Fetch metadata only for a CELEX (title, dates, type, author, ECLI/ELI, keywords, subjects) — significantly faster than lex_get_document because it skips body parsing. Use this for quick "what is this document" lookups or before deciding whether to fetch the body.

ParametersJSON Schema
NameRequiredDescriptionDefault
celexNumberYesCELEX identifier.

TDQS

A4/5.0
Behavior3/5

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

With no annotations, description discloses key behavioral trait: it skips body parsing (thus faster and lighter). Does not mention safety (read-only) or permissions, but for a metadata fetch tool this is adequate. No contradictions.

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 redundant words. Purpose stated upfront, key differentiator in second sentence. Highly efficient.

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?

No output schema, but description lists expected metadata fields (title, dates, etc.), compensating well. Explains speed advantage and use case. For a simple one-parameter tool, this is sufficient for an agent to decide.

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% (celexNumber described with pattern). Description adds no additional parameter-specific meaning beyond the CELEX identifier, but explains what metadata is returned, which indirectly justifies the parameter. Baseline score of 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?

Clearly states 'Fetch metadata only for a CELEX' and lists specific metadata fields (title, dates, type, author, ECLI/ELI, keywords, subjects). Distinguishes from sibling lex_get_document by noting it skips body parsing and is faster.

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?

Provides usage context: 'Use this for quick "what is this document" lookups or before deciding whether to fetch the body.' Implicitly excludes use cases needing full content. No explicit when-not-to-use or alternatives beyond lex_get_document, but sufficient guidance.

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

lex_recent_documentsA

List documents published to the Official Journal recently. Default window is 7 days. Filterable by document type, author, and language. Use this when the user asks "what was published this week" or wants a delta over a date window.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNoLook-back window in days.
documentTypeNo
authorNo
languageNoen
limitNo

TDQS

A3.8/5.0
Behavior3/5

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

No annotations provided, so description bears full burden. It states it's a list operation (read-only), default window 7 days, and filterable by type, author, language. Does not disclose if there are rate limits, authentication needs, or what fields are returned.

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: first states purpose, second provides usage tip. No unnecessary words or redundancy. Front-loaded with core function.

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?

Given no output schema, no annotations, and 5 parameters, the description covers basic purpose and filters but omits mention of the limit parameter, return format, and how it relates to other tools (e.g., as a supplement to lex_search). Sufficient for a simple list tool but could be more complete.

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 only 20% (only 'days' has a description). The description mentions default window and filterable options but does not explain the meaning of enum values for documentType, author, language, or the limit parameter. It adds minimal value beyond the schema.

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 clearly states the action (list) and resource (documents published to the Official Journal recently). It distinguishes itself from siblings like lex_search, which is for general search, by focusing on recent publications.

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?

Provides explicit usage context: use when user asks 'what was published this week' or wants a delta over a date window. However, it does not mention when not to use it or explicitly list alternatives.

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

lex_semantic_case_lawA

Embedding-based search over EU case law — finds cases by meaning, not exact keywords. Returns relevance-scored matches with ECLI, court, case name/number, and (where available) full text. Requires a paid LexAPI plan; returns 403 on FREE tier.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
limitNo
min_scoreNoDrop results below this cosine similarity (0–1).
filtersNoOptional upstream filters passed through to the semantic backend.

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden. It discloses important behavioral traits: requires a paid LexAPI plan, returns 403 on free tier, and returns relevance-scored matches with specific fields. It does not cover pagination or error handling beyond 403.

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 extremely concise with three short sentences, front-loaded with the key differentiator. Every sentence adds essential information without waste.

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?

Given no output schema, the description adequately covers what is returned (ECLI, court, name, full text). It lacks details on pagination, empty results, or full error handling, but is sufficient for basic usage.

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 coverage is 50% (only min_score and filters have descriptions). The description adds no explanation for parameters; it does not clarify what 'query' or 'limit' mean beyond the schema. The description's value for parameters is minimal.

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 clearly states it is an embedding-based semantic search over EU case law, finding by meaning rather than keywords. This distinguishes it from sibling tools like lex_search (keyword) and lex_semantic_legislation (semantic for legislation).

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 usage for conceptual searches by saying 'finds cases by meaning, not exact keywords', but does not explicitly state when to avoid this tool or provide direct alternatives. It relies on sibling tool names for differentiation.

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

lex_semantic_legislationA

Embedding-based search over EU legislation at article granularity. Returns relevance-scored article hits with parent CELEX, article reference, and law title. Requires a paid LexAPI plan; returns 403 on FREE tier.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
limitNo
min_scoreNo
filtersNo

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, description carries full disclosure burden. It reveals it's embedding-based, returns relevance scores, and requires a paid plan. However, it omits behaviors like how filters work, pagination, rate limits, or side effects, leaving gaps.

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 three sentences, each carrying essential information: purpose, output details, and prerequisite. No fluff, front-loaded with key verb and resource.

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?

Given 4 parameters, no output schema, and no annotations, the description is too brief. It fails to explain parameter usage (e.g., what 'filters' accepts, meaning of 'min_score') and does not fully specify return format, leaving significant gaps for agent invocation.

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 has 0% description coverage, and the description does not explain any parameter semantics (query, limit, min_score, filters). It only describes output fields, so the agent lacks guidance on how to configure inputs meaningfully.

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?

Description clearly states it performs embedding-based search over EU legislation at article granularity, and lists specific returned fields (parent CELEX, article reference, law title). This distinguishes it from sibling tools like lex_semantic_case_law (case law) and lex_search (likely keyword search).

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?

Description mentions the paid plan requirement but does not explicitly guide when to use this tool versus alternatives (e.g., keyword search or case law semantic search). Usage context is implied but not delineated.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 10 tool updatesv0.1.0
    • First observedlex_citation_network
    • First observedlex_cited_by
    • First observedlex_cites
    • First observedlex_get_document
    • First observedlex_get_document_by_url
    • First observedlex_get_metadata
    • First observedlex_recent_documents
    • First observedlex_search
    • First observedlex_semantic_case_law
    • First observedlex_semantic_legislation

TDQS

A3.9/5.0
Disambiguation4/5

Most tools have distinct purposes, but the citation tools (lex_citation_network, lex_cited_by, lex_cites) overlap in scope. However, descriptions clearly differentiate holistic vs directional usage, preventing major confusion.

Naming Consistency3/5

All tools share the 'lex_' prefix, but naming patterns vary: verb_noun (lex_get_document), noun_verb (lex_citation_network), adjective_noun (lex_semantic_case_law), and plain verb (lex_search). This inconsistency may require extra attention.

Tool Count5/5

With 10 tools, the set is well-scoped for a legal document API. Each tool covers a distinct aspect of retrieval and search without feeling bloated or sparse.

Completeness5/5

The tool set covers all essential operations for a read-only EU legal API: search, recent publications, metadata, full document retrieval, citation network (holistic and directional), and semantic search for both case law and legislation. No obvious gaps in core functionality.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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/Lex-API/lexapi-mcp'

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