Skip to main content
Glama

audit_rag_chunks

Read-onlyIdempotent

Audit RAG chunks for passage extractability, chunk word lengths, and pronoun-dependent openers so AI answer engines retrieve clear, self-contained passages.

Instructions

Evaluate passage extractability, chunk word lengths and pronoun-dependent openers for RAG/AI answer engines.

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": {
      "text": "<text>"
    },
    "name": "audit_rag_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
localeNoen
targetWordsPerChunkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is fully covered. The description adds what is actually measured (extractability, chunk lengths, pronoun-dependent openers), but says nothing about how results are reported, what counts as a failure, or how the target chunk size influences the analysis.

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 with no filler, and the key scope (RAG/AI answer engines) lands at the end where it frames everything prior. It is efficient, though the density of jargon makes it slightly harder to parse than a plain-language phrasing would be.

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?

With no output schema, the description is the only hint at what comes back, and listing the three evaluated dimensions partially covers that gap. However, for a tool with three parameters and zero schema documentation, the definition leaves the agent guessing about return structure and how to act on findings.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must carry the burden and does not. "Chunk word lengths" faintly gestures at targetWordsPerChunk but never explains its default of 90, its 30-300 range, or how it changes the evaluation; the locale enum (ru/en) and the text size cap are not addressed at all.

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 names a specific verb ("Evaluate") and three concrete analysis targets: passage extractability, chunk word lengths, and pronoun-dependent openers, scoped to RAG/AI answer engines. That is enough to separate it from siblings like audit_editorial_clarity or audit_claim_grounding, though it never explicitly names a boundary against them.

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 "for RAG/AI answer engines" implies the context of use (preparing or diagnosing content for AI retrieval), but there is no explicit when-to-use, when-not-to-use, or alternative routing guidance. The agent must infer that this is a content-chunking audit rather than a crawl, schema, or readability check.

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