Skip to main content
Glama

Model Ruler — AI Cost Calculators

rag-pipeline-cost-calculator

Use when a user needs end-to-end RAG cost estimation (embedding + vector store + generation). Returns monthly cost with breakdown and dominant-component identification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vector_storeNoVector store
answer_tokensNoAvg answer tokens (default 400)
corpus_tokensYesIndexed corpus size in tokens
generator_modelNoGenerator model (default claude-sonnet-4-6)
queries_per_dayYesUser query volume per day
question_tokensNoAvg question tokens (default 100)
chunks_retrievedNoChunks per query (default 5)
chunk_size_tokensNoAvg chunk size (default 512)
embedding_providerNoEmbedding model
generator_providerNoGenerator LLM provider (default anthropic)
reindex_fraction_per_monthNoFraction of corpus re-embedded per month (default 0.1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the return shape (monthly cost, breakdown, dominant-component identification), which is genuinely useful, but says nothing about defaults being applied on omitted optional params, determinism of the estimate, or treating defaults such as answer_tokens/chunks_retrieved.

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, zero filler, and the invocation trigger is front-loaded ahead of the return description. Nothing could be cut without losing signal.

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 output schema, the description correctly takes on the job of describing the return value (monthly cost with breakdown and dominant component), which is what an agent needs to decide to call it. Remaining gaps are behavioral detail on defaults and estimation assumptions rather than anything blocking correct invocation.

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 100% across all 11 parameters, including enum values for vector_store and embedding_provider and defaults for the optional sizing params, so the schema does the heavy lifting. The description adds no parameter-level detail beyond that, making the baseline 3 appropriate.

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+resource ('end-to-end RAG cost estimation') and enumerates the covered cost components (embedding + vector store + generation), so the scope is unambiguous. It does not explicitly contrast itself with the many sibling cost calculators, but the RAG-pipeline framing is distinctive enough to route correctly.

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?

Opens with an explicit trigger: 'Use when a user needs end-to-end RAG cost estimation.' That gives clear context for invocation, but offers no when-not condition and does not name alternatives (e.g., provider-cost-calculator for single-provider comparisons, self-host-breakeven-calculator for hosting decisions) despite eleven overlapping siblings.

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