Skip to main content
Glama

Format Citation

format_citation
Read-onlyIdempotent

Format a citation in APA 7, MLA 9, or Chicago author-date style. FREE.

Typical input {"style": "apa", "authors": ["Curie, Marie"], "year": 1911, "title": "Radium and radioactivity", "container": "Century Magazine"} returns {"style": "apa", "citation": "Curie, M. (1911). Radium and radioactivity. Century Magazine.", "note": "..."}.

Use when the source details are already known and only the formatting is missing. Not for finding or verifying a source. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "style must be apa, mla, or chicago"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoOptional URL of the source.
yearYesPublication year, e.g. 2024.
styleYesCitation style: "apa", "mla", or "chicago" (case-insensitive).
titleYesTitle of the work being cited.
authorsYesAuthors as "Last, First" strings in source order, at least one, e.g. ["Curie, Marie"].
accessedNoOptional access date for MLA web sources, e.g. "12 Aug. 2026".
containerNoOptional journal, book, or site name.
publisherNoOptional publisher name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds significant context by clarifying error handling in detail: 'on invalid, missing, or malformed input this tool never raises a protocol error.' This perfectly complements the annotations without contradicting them.

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?

The description is well-structured and front-loaded with the most critical information (the style, the free usage). The example is invaluable. The only minor issue is that the error handling section, while informative, could be slightly more concise without losing clarity.

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 the presence of an output schema, the description provides key return-value context by showing the exact structure of a successful response and, more importantly, the structure of all error responses. For a tool with 8 parameters (4 required), this is comprehensive and leaves no ambiguity about the tool's behavior.

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

Parameters5/5

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

Schema description coverage is at 100%, with all 8 parameters clearly described in the input schema. The description adds value by providing a concrete example showing how the parameters map to a citation string, highlighting that 'authors' expects 'Last, First' strings and that many parameters are optional with sensible defaults. This goes well beyond what the bare schema provides.

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 formats citations in APA 7, MLA 9, or Chicago style. It gives a detailed JSON example and contrasts with what the tool does not do (finding or verifying a source). This level of specificity effectively distinguishes it from siblings like 'sample_size' or 'stats_describe'.

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 states when to use the tool: 'when the source details are already known and only the formatting is missing.' It also clarifies what not to use it for: 'Not for finding or verifying a source.' While no explicit alternatives from the sibling list are named, this guidance is still quite strong.

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.7/5.0
Disambiguation5/5

Each tool targets a distinct function: statistics tools for descriptive, inferential, and planning; product tools for listing, free skill, paid skill, and full product; and citation formatting. No overlap or ambiguity.

Naming Consistency4/5

Most tools follow a verb_noun or noun_verb pattern, but there is a mix: some are noun phrases (confidence_interval, sample_size, stats_describe) while others are verb phrases (format_citation, list_products). The naming is clear but not perfectly uniform.

Tool Count5/5

With 8 tools, the server covers two functional domains (statistics and product browsing) without being bloated. Each tool serves a clear purpose, and the count feels well-scoped.

Completeness4/5

The product domain is covered thoroughly (list, free skill, paid skill, full product). The statistics domain is missing hypothesis tests and more advanced analyses, but the included tools cover basic descriptive, confidence intervals, and sample size planning, which is reasonable for a 'research desk' scope.

Resources