Skip to main content
Glama

Multiply numbers

multiply
Read-onlyIdempotent

Calculates the product of two finite numbers and returns a structured result.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "multiply"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only the 'finite numbers' input constraint and mentions a structured result, which the output schema already defines; it does not say how non-finite inputs are handled.

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?

A single short sentence with zero waste, front-loading the operation and the input constraint. Nothing is repeated 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 two-parameter arithmetic tool with an output schema and full annotation coverage, the description supplies what an agent needs to invoke it correctly. The only residual gap is the unspecified behavior for non-finite inputs, which is minor at this 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 0%, so the schema gives no parameter documentation beyond the names a and b. The description partially compensates by stating both inputs must be finite numbers, but it does not clarify which parameter is which multiplicand or what happens with non-finite values.

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 and resource — computing the product of two finite numbers — so the agent can tell it apart from arithmetic siblings such as add. It stops short of explicitly contrasting itself with any sibling, which keeps it at 4 rather than 5.

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 phrase about computing a product signals the operation, but there is no explicit statement of when to prefer this over add or process_steps. For a trivial arithmetic primitive the implied guidance is largely sufficient, so it lands at the minimum-viable level rather than failing.

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