Skip to main content
Glama

Draft AGENTS.md, JSON-LD, alt text or answer-first headings

generate_draft
Read-onlyIdempotent

Draft fixes for a site or repo owner to review, each tied to its sources. kind agents-md: an AGENTS.md (setup, commands, layout, conventions) for a GitHub repo or docs site, every line citing its file and line. jsonld: WebSite/Organization/Product/SoftwareApplication JSON-LD built only from facts on the site. alt-text: alt text for images missing it, from image descriptions. answers: per H2 section, a question-shaped heading and an answer-first sentence drawn only from that section. Drafts never contain URLs, commands or numbers not in the sources. Cached 24h; counts as a new link.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "kind": "<kind>"
    },
    "name": "generate_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAny public http(s) link, e.g. "docs.stripe.com/payments", "github.com/honojs/hono", a PDF or a video URL. The scheme is optional.
kindYesWhat to draft.
freshNoIgnore the 24h cache and regenerate. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses the grounding constraint ('never contain URLs, commands or numbers not in the sources'), that output is a draft for human review, and a 24h cache plus that a call 'counts as a new link' — quota/cost context the annotations do not carry. The readOnly/idempotent hints are consistent with a draft-only tool. It stops short of describing the response shape or where drafts are delivered, which is the remaining gap given there is no output schema.

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?

Front-loads the one-line purpose before the mode breakdown, then uses backticked enum labels to make each clause scannable. Every sentence contributes either a mode definition, a grounding constraint, or cost/caching information — nothing is filler.

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 only 3 well-documented parameters and full annotations, the input side is fully covered and the grounding rules are unusually explicit. The main omission is the return surface: with no output schema, an agent still cannot tell the format of the drafts (files, markdown, a link) or how multiple drafts are bundled, only that they are 'tied to its sources' and that the call 'counts as a new link.'

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%, so the baseline is 3; the description earns above that by giving substantive meaning to each `kind` enum value (agents-md = setup/commands/layout/conventions citing file and line; jsonld = specific schema.org types built only from on-site facts; answers = per-H2 question heading plus answer-first sentence), which the schema reduces to 'What to draft.' The cache sentence also implicitly explains why `fresh` exists, though it adds nothing beyond the schema's own `fresh` description for `url`.

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 ('Draft') plus the artifact produced ('fixes ... tied to its sources') and then enumerates the four exact draft types (agents-md, jsonld, alt-text, answers) with what each contains. An agent can tell immediately that this is a generation tool, distinct from the sibling inspection tools (check_llms_txt, agent_view, video_frame).

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 opening clause 'for a site or repo owner to review' establishes the context and the four per-kind explanations effectively tell the agent which mode to pick for which need (repo docs vs structured data vs image accessibility vs heading rewriting). What is missing is any negative guidance — no statement of what this tool should not be used for, or when a sibling such as check_llms_txt or agent_view is the better first step.

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