Skip to main content
Glama

Interpolation Calculator

calculator_interpolation
Read-only

Linear or Lagrange polynomial interpolation.

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": {
      "x": "<x>",
      "y": "<y>",
      "target": "<target>"
    },
    "name": "calculator_interpolation"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX samples.
yYesY samples.
methodNolinear or polynomial.linear
targetYesTarget X.

Output Schema

NameRequiredDescriptionDefault
expressionYes
interpolated_yYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds nothing beyond that — no constraint that x values must be distinct, that x and y must be the same length, or what happens for out-of-range targets.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Seven words with zero waste and the core information front-loaded, but it is under-specified rather than genuinely concise — economy achieved by omitting content an agent needs, not by tight writing.

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

Completeness2/5

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

An output schema exists, so return values needn't be explained, but for a 4-parameter numerical tool with three required arrays/scalar inputs the description omits the pairing and validation rules that determine a correct call. It is too thin for the tool's complexity.

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%, so baseline is 3. The description does add one useful gloss by clarifying that the 'polynomial' method means Lagrange (the schema only says 'linear or polynomial'), but it says nothing about how x/y/target relate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The fragment 'Linear or Lagrange polynomial interpolation' names the resource and both supported methods, so an agent can tell it apart from calculator_linear_regression or calculator_polynomial. However it has no verb and no scope statement (e.g., single target point vs. curve fitting), leaving the purpose only partially pinned down.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no mention that x/y must be sample pairs, no routing away from nearby siblings like calculator_newton_raphson, calculator_numerical_solve, or calculator_linear_regression. The agent must infer the context entirely from the name.

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.