Skip to main content
Glama

UK Business Tools - Ledgerhall

Format OSCOLA Citation String

law_citations_format_oscola
Read-onlyIdempotent

USE THIS TOOL AFTER citations_resolve to produce the correctly formatted OSCOLA citation string.

Pass the parsed fields returned by citations_resolve directly into this tool. Formats per OSCOLA 4th edition rules for each citation type.

Refuses (status: upstream_validation) if confidence is 0.0 — TNA confirmed the document does not exist — or if a neutral citation has no resolved_url (ambiguous court code, e.g. bare EWHC without a division). In either case, do NOT manufacture a citation; surface the failure and ask the user for the source URL or better identifying details.

DO NOT construct the input fields yourself. The structured input must come from citations_resolve — guessing fields is the primary citation-fabrication route and this tool is the guard against it.

Authoritative OSCOLA formatting for UK legal citations (no network call).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNo'raw' from citations_resolve. Used as-is for EU retained law — the original text preserves the Regulation/Directive distinction.
pageNo'page' from citations_resolve (starting page in the law report).
yearNo'year' from citations_resolve.
courtNo'court' from citations_resolve, e.g. 'UKSC', 'EWCA CIV', 'EWHC (KB)'.
numberNo'number' from citations_resolve (judgment number within the year).
volumeNo'volume' from citations_resolve (law report volume, if any).
sectionNo'section' from citations_resolve, e.g. '47', '12', '20A'.
si_yearNo'si_year' from citations_resolve.
si_numberNo'si_number' from citations_resolve.
confidenceYes'confidence' from citations_resolve. Refuses to format if 0.0 — that means TNA confirmed the document does not exist. Pass only the value citations_resolve returned; do not guess.
resolved_urlNo'resolved_url' from citations_resolve. Must be non-null for neutral citations.
citation_typeYes'type' field from citations_resolve result.
report_seriesNo'report_series' from citations_resolve, e.g. 'WLR', 'AC', 'QB'.
legislation_titleNo'legislation_title' from citations_resolve, e.g. 'Companies Act 2006'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish readOnly and non-destructive behavior, so the description adds critical behavioral context: refusal conditions (confidence 0.0, missing resolved_url), the 'no network call' property, and the strong prohibition against constructing inputs manually to prevent citation fabrication. No contradictions with annotations.

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?

Although somewhat long, every sentence delivers essential operational guidance: ordering, input provenance, refusal triggers, and anti-fabrication policy. The bold 'USE THIS TOOL AFTER' and 'DO NOT construct' warnings are prominent, and the text is well-structured for quick scanning.

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?

The description covers the full invocation context: pipeline position, input requirements, failure modes, and authoritative formatting behavior. With an output schema present, return-value details are unnecessary. The tool's high-stakes nature (citation fabrication) justifies the thorough guidance.

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 100% with each parameter described as coming from citations_resolve, so the schema carries the parameter details. The description enhances this by mandating that fields must be passed directly from citations_resolve and never guessed, adding provenance semantics that reduce fabrication risk.

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's purpose: 'produce the correctly formatted OSCOLA citation string' and 'Formats per OSCOLA 4th edition rules for each citation type.' It also distinguishes itself from sibling tools by explicitly saying 'USE THIS TOOL AFTER citations_resolve,' positioning it as the formatting step in a two-tool pipeline.

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?

The description gives explicit when-to-use guidance: 'USE THIS TOOL AFTER citations_resolve' and instructs to pass parsed fields directly. It also provides exclusions: refuses when confidence is 0.0 or when neutral citations lack a resolved_url, and tells the agent to surface the failure rather than fabricate a citation.

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/5.0
Disambiguation4/5

Tools are well-grouped by domain prefixes (dd_, gov_, law_, prop_) with clear descriptions that differentiate them. However, there is minor overlap, e.g., dd_search could be used instead of individual searches, and dd_fetch versus dedicated profile tools might cause confusion.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with domain-specific prefixes (dd_, gov_, law_, prop_). Names are descriptive and predictable, e.g., dd_charity_search, gov_govuk_search, law_bills_search_bills.

Tool Count4/5

70 tools is high but justified by the broad scope covering due diligence, government, legal, and property domains. Each domain has a reasonable number of tools (about 15-20 each). The count is on the upper end but still manageable.

Completeness5/5

The tool set is comprehensive across all domains: full CRUD for companies and charities, detailed legal research (cases, legislation, parliament, citations), property data (EPC, planning, price paid, rentals), and government information. No obvious gaps for the intended use cases.

Resources