Skip to main content
Glama

Costable — Parametric Should-Cost Analysis

add_material_to_model

Add a material (BOM line) to an existing cost model. Searches the materials database by name query — no need for exact IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qtyNoNumber of this material per unit assembly. Defaults to 1.
massKgYesMass of material per unit in kilograms.
modelIdYesCost model ID returned by create_cost_model.
scrapFactorNoScrap/yield factor (e.g. 1.05 = 5% material waste). Defaults to 1.05.
materialQueryYesMaterial name to search for, e.g. 'ABS', 'Aluminium 6061', 'Stainless 304'.

TDQS

A3.6/5.0
Behavior3/5

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

With zero annotations, the description carries the full burden of behavioral disclosure. It does disclose a genuine behavioral trait — that the tool searches the materials database by name rather than requiring exact IDs — which is useful. However, for a mutation tool it stays silent on important behaviors: whether adding a duplicate material is an error or a no-op, whether changes are persisted immediately, how multi-match or zero-match searches are handled, and what the response contains. Credit for the search semantics, but an agent can't predict the tool's behavior on edge cases.

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?

Two tight sentences: the first front-loads the purpose, the second carries the key behavioral trait. Every word earns its place and there is zero fluff or redundancy with the schema. A third sentence on error/return behavior would have earned a 5, but as written it's efficient and well-ordered.

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?

For a tool with 5 params (3 required), no output schema, and no annotations, the description is functional but not comprehensive. It communicates the essential flow — add a material, searchable by name — and the schema carries parameter documentation. However, for a mutating operation, the lack of any stated expectation about return values, idempotency, or validation behavior (e.g., what if materialQuery has zero matches?) leaves an agent without enough to anticipate failures. It's adequate for the happy path but falls short of what a well-rounded mutation tool description should cover.

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%, with each of the five parameters already well-explained (e.g., modelId references create_cost_model, qty and scrapFactor state their defaults, materialQuery has examples). Per the rubric, a baseline of 3 applies. The description's 'Searches the materials database by name query — no need for exact IDs' does add marginal meaning by confirming materialQuery is fuzzy-match, not an identifier — a useful clarification that justifies the baseline rather than below. But there's no additional parameter semantics in the description that goes beyond what the schema already says.

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?

Uses a specific verb+resource ('Add a material (BOM line) to an existing cost model') and adds the search-by-name behavioral differentiator, which cleanly distances it from the exact-ID workflow an agent might assume. Together with the sibling name add_process_to_model, an agent can immediately tell which tool handles materials vs. processes. The 'no need for exact IDs' clause is the kind of behavioral detail that makes the purpose unambiguous.

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 intended use case — adding a material to a model by name — is implied and correct, but the description never explicitly states when to prefer this over related siblings like add_process_to_model or search_materials, nor does it mention any when-not-to-use conditions. An agent could infer 'materials go here, processes go to the other one,' but that inference rides on sibling tool names rather than anything the description states. There is also no mention of what happens if the materialQuery returns no results or multiple results, which is a meaningful usage gap for a fuzzy-search mutation.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools target a distinct action and resource: search vs. add vs. calculate vs. compare vs. review. The only mild ambiguity is between estimate_part and calculate_cost_model, but their descriptions clearly distinguish a quick natural-language estimate from running a full saved model.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using imperative verbs like create, add, calculate, compare, search, get, and review. This makes the tool surface predictable and easy to navigate.

Tool Count5/5

Ten tools is well-scoped for a should-cost analysis domain. Each tool covers a clear stage in the workflow: model creation, component/process lookup, cost calculation, country comparison, and quote review.

Completeness4/5

The core should-cost workflow is covered well: create a model, add materials and processes, calculate, compare locations, benchmark quotes, and perform quick estimates. Minor gaps exist around updating or removing model contents and around broader lifecycle management, but agents can work around these.

Resources