Skip to main content
Glama
tanishra

Mathematics MCP Server

by tanishra

cosine

Calculate the cosine of an angle in degrees, returning the trigonometric value between -1 and 1 for accurate math computations.

Instructions

Calculate the cosine of an angle in degrees. Args: data (AngleOperation): An object containing the angle in degrees. Returns: Dict[str, Any]: A dictionary containing the operation result or an error message. Notes: - Input angle should be in degrees (not radians). - Result is between -1 and 1. - Logs the operation and result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and discloses important behavior: input in degrees, result range [-1, 1], logging of operation and result, and a Dict return containing either result or error. It doesn't detail error cases or side effects beyond logging, but those are secondary for a pure math operation.

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?

Purpose is front-loaded in the first sentence, and the remaining Args/Returns/Notes lines each add a non-redundant constraint: units, result range, return shape, and logging behavior. No filler or excessive detail.

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 single-parameter math tool, the description covers invocation (what object to pass), units, expected output range, return format, and side effect (logging). The output schema also exists, so the missing detailed return shape is not a gap.

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 description coverage is 0%, so the description compensates by explaining the data parameter as 'an object containing the angle in degrees' and by clarifying angle units. It does not spell out the exact JSON shape (data.angle), but the schema's AngleOperation definition fills that gap.

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?

Opens with a specific verb and object: 'Calculate the cosine of an angle in degrees.' This distinguishes it from sibling math/trig tools (sine, tangent) and states the unit, so an agent knows this is the cosine operation and not a generic angle calculator.

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?

The first line and Notes give clear context for when to use it: whenever the cosine of an angle expressed in degrees is needed, with a reminder that radians are not accepted. It does not explicitly contrast with sine/tangent siblings, but the wording is unambiguous enough for selection.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tanishra/math-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server