Skip to main content
Glama

Right Triangle Calculator

calculator_right_triangle
Read-only

Right triangle via Pythagoras and trig. Example: a=3, b=4 → c=5.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculator_right_triangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoLeg a.
bNoLeg b.
cNoHypotenuse c.
angle_aNoAcute angle opposite a (degrees).
angle_bNoAcute angle opposite b (degrees).

Output Schema

NameRequiredDescriptionDefault
aYes
bYes
cYes
resultYes
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/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 only the mathematical method and an example, with no extra behavioral context such as input-combination requirements or result constraints.

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?

The description is very short and front-loaded, with no wasted text. It is perhaps under-specified rather than overlong, but in terms of size and structure it is efficient.

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?

Output schema and annotations are present, so return values and safety do not need explanation. However, with five optional parameters and zero required inputs, the description omits the critical invocation rule: how many and which inputs must be supplied (e.g., any two of a, b, c, angle_a, angle_b). That gap is significant for correct use.

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 each parameter is already documented in the schema. The description adds a small illustrative mapping (a=3, b=4 → c=5), but does not explain the expected number or combination of optional inputs beyond that baseline.

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 identifies a specific resource (right triangle) and method (Pythagoras and trig), which distinguishes it from the general calculator_triangle sibling. It is clear what the tool computes, though it does not explicitly contrast itself with calculator_trigonometry or calculator_triangle.

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?

It gives a worked example but no guidance on when to use this tool versus related alternatives like calculator_triangle or calculator_trigonometry. There are no prerequisites, no exclusions, and no explanation of valid input combinations.

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.