Skip to main content
Glama

geometry.area_triangle

Read-onlyIdempotent

Calculate a triangle’s area from its base and perpendicular height using exact decimal arithmetic, so you can get reliable results for geometry and measurement tasks.

Instructions

삼각형 넓이 (base * height) / 2 를 Decimal 로 계산한다. base 는 밑변, height 는 그 밑변에 수직인 높이이며 둘 다 유한한 0 이상 Decimal 문자열, 단위는 같아야 한다. 입력 자릿수에 맞춰 정확히 계산하며 호출자의 Decimal 정밀도에 영향을 받지 않는다. 비스듬한 변의 길이를 height 로 넣으면 틀리므로 수직 높이를 넣는다.

Input Schema

NameRequiredDescriptionDefault
baseYes
heightYes

Output Schema

NameRequiredDescriptionDefault
areaYes
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so safety is covered; the description adds real behavioral context — exact computation at input precision and independence from the caller's Decimal context precision — which an agent could not infer from the schema.

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?

Four dense sentences with the formula front-loaded, followed by semantics, precision behavior, and the pitfall warning; no filler or repetition of the schema.

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

Completeness5/5

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

For a two-parameter pure calculation with an output schema present, the description covers inputs, constraints, precision semantics, and common error — nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (only bare titles), so the description carries the full burden and does: it defines base and height geometrically, imposes constraints (finite, non-negative, same units, Decimal string), and prevents the most likely input error with the slant-side warning.

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?

States a specific verb+resource (compute triangle area) and gives the exact formula (base*height)/2 in Decimal, immediately distinguishing it from geometry.area_rectangle/area_circle/area_polygon siblings.

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

Usage Guidelines4/5

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

Clarifies what base and height must be (same units, finite non-negative Decimal, perpendicular height) and explicitly warns that using a slant side as height yields a wrong result. It lacks explicit when-to-use vs. an alternative formula (e.g., Heron), but the misuse exclusion is a strong usage signal.

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

Deploy Server

Other Tools