Skip to main content
Glama

Add legal reference

add_legal_reference

Put a reference to a legal act on an issue or a wiki page — as «Add» in the block «Legal acts» does: it is yours, accepted at once. 'url' is the act's address on one of the official sites acts are read from (a refusal lists them); an act not read yet is read in the background, so 'hasText' may be false at first. 'place' is the place in the act in words («Article 18»). With 'commentId' the reference stands in that comment instead of the issue's or the page's own text. The same place of the same act already there is that reference ('added' false). Requires permission to edit the issue or the page — to comment, for a comment's — and a project that keeps legal references.

Input Schema

NameRequiredDescriptionDefault
urlYesThe act's address, e.g. 'https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32015L0849'.
pageNoWiki page id. Either this or 'issue'.
issueNoIssue key, e.g. 'UK-1'. Either this or 'page'.
placeNoThe place in the act, in words, e.g. 'Article 18'.
commentIdNoA comment on that issue or page the reference stands in (an id from get_comments), instead of the issue's or the page's own text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly false, destructive false): it discloses idempotency ('same place of same act already there → added false'), asynchronous act fetching ('hasText may be false at first'), and required permissions. These are exactly the traits an agent needs to avoid misinterpreting a success.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening verb+resource is front-loaded, but the body is a dense run of parenthetical clauses and abrupt fragments ('it is yours, accepted at once') that hurt scannability. Several sentences could be tightened without losing 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 5-parameter mutation with no output schema, the description covers targets (issue/page/comment), permissions, background-processing side effects, and the idempotent result signal. Nothing essential for a correct call is missing.

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?

Although schema coverage is 100%, the description still adds meaning: url must point to an official source site, place is stated in words ('Article 18'), and commentId anchors the reference inside a comment rather than the issue/page body. This enriches rather than repeats 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?

States a specific verb and resource ('Put a reference to a legal act on an issue or a wiki page') and scopes the target objects, which clearly separates it from siblings like add_attachment or add_comment. The analogy to the UI 'Add' in the 'Legal acts' block makes the operation unambiguous.

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?

Explains the conditions for use: it requires a project that keeps legal references and permission to edit the issue/page (or comment). It clarifies the commentId alternative, but never names sibling tools such as list_legal_references or remove_legal_reference to route the agent explicitly.

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