Skip to main content
Glama

Xkcd Get Latest

xkcd_get_latest
Read-onlyIdempotent

Fetch the most recently published XKCD comic. Returns comic number, title, image URL, alt/hover text, publication date, transcript (if available), and permalink.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xkcd_get_latest"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
altYesAlt text for the comic image
imgYesURL to the comic image
urlYesURL to view the comic on xkcd.com
dateYesPublication date in YYYY-MM-DD format
linkYesURL link related to the comic, or null if not present
titleYesThe comic title
numberYesThe comic number
safe_titleYesThe comic title with special characters escaped
transcriptYesTranscript of the comic, or null if not available

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds only a list of returned fields, which duplicates the existing output schema, and says nothing about freshness, caching, or failure behavior for the upstream service.

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, both front-loaded: the action first, then the return contents. There is no filler, hedging, or repetition of the tool name.

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?

With no parameters, rich annotations, and an existing output schema, the definition covers everything needed to invoke the tool correctly. The only real gap is the absence of sibling differentiation against get_comic and random_comic, which matters given how similar those names are.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline for a parameterless tool applies. The description correctly does not invent parameter discussion.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("Fetch the most recently published XKCD comic") and enumerates the returned fields, so the purpose is unambiguous. It does not, however, name or contrast itself with the sibling tools get_comic or random_comic, leaving the agent to infer which comic-selection mode applies.

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 phrase "most recently published" implicitly signals when to use this tool (wanting the newest strip rather than a specific or random one). There is no explicit when-to-use/when-not-to-use guidance and no mention of the obvious alternatives get_comic and random_comic, so routing relies on inference.

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.