Skip to main content
Glama

audit_llms_budget

Read-onlyIdempotent

Audit an llms.txt file and its linked pages against a target context window, flagging duplicate URLs, missing targets, and oversized core sections.

Instructions

Audit llms.txt structure and linked page token footprint against a target context window, detecting duplicate URLs, missing targets and oversized core sections.

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": {
      "llmsTxt": "<llmsTxt>"
    },
    "name": "audit_llms_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNo
llmsTxtYes
targetContextTokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value by enumerating the checks performed (duplicate URLs, missing targets, oversized core sections), but it says nothing about the shape of the result or what thresholds trigger a flag. With annotations doing the heavy lifting, a 3 fits.

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?

A single front-loaded sentence that packs purpose, scope and detection targets with no filler. It is dense enough that the three defect classes run together, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of telling the agent what comes back, and it only partially does so by naming the defect classes. Missing are the parameters' input expectations and any indication of report format or severity, which matters for a three-parameter audit tool.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate for three undocumented parameters. It maps loosely onto them ('llms.txt', 'linked page', 'target context window') but does not clarify that llmsTxt is the raw file contents and the only required input, that pages carries pre-fetched markdown, or that targetContextTokens defaults to 32000 within 1000-200000 bounds.

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?

States a specific verb (audit) and resource (llms.txt structure plus linked page token footprint) with the measuring stick (a target context window) and the three defect classes it detects. It is clear on its own, but it does not distinguish itself from the near-named sibling audit_llms_txt, which an agent would reasonably confuse it with.

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 'against a target context window' implies the scenario (checking whether an llms.txt budget fits a model context), but there is no explicit when-to-use, no prerequisites, and no named alternative such as audit_llms_txt or build_llms_bundle. Usage must be inferred from the purpose statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.