Skip to main content
Glama

calc_quote

Estimates testing quote ranges and total costs by lab and capability item, applying quantity-based pricing and extra-sample surcharge rules.

Instructions

按机构与能力项取报价区间并按数量估算总额(含超出含样量加价规则)。价格是示例区间,不构成商务承诺。

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": {
      "lab_id": "<lab_id>",
      "scope": "<scope>"
    },
    "name": "calc_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes能力项,如 力学疲劳
lab_idYes机构 ID,来自 match_labs
quantityNo样品数量,默认 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose two valuable behaviors: the surcharge rule for exceeding the included sample quantity, and that prices are illustrative ranges with no commercial commitment. It does not state that the tool is a pure computation with no side effects, nor anything about permissions or limits.

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 short sentences, front-loaded with the core action, followed by the caveat. Nothing is redundant or padded.

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?

For a 3-parameter, no-annotation, no-output-schema tool, the description covers the input intent, the computation logic, and the pricing caveat. It only lightly implies the return shape (a range plus an estimated total) without spelling it out.

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 baseline is 3, but the description adds real meaning: quantity drives a total estimate and triggers an over-quantity surcharge rule, which the schema's '样品数量,默认 1' does not convey. It also frames lab_id/scope as the pricing lookup key.

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 pair (取报价区间 / 估算总额) against a specific resource (报价), scoped by 机构 and 能力项. It is clearly a pricing-estimate tool distinct from siblings like match_labs or query_standard, though it never names an alternative explicitly.

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?

Usage is only implied: the schema notes lab_id comes from match_labs, so an agent can infer this runs after lab matching. The description itself gives no when-to-use, when-not-to-use, or alternative routing guidance.

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