Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Sequence

calculate_sequence
Read-onlyIdempotent

Calculate nth term and sum of arithmetic or geometric sequence. Returns: {common_difference, nth_term, sum_of_n}. See list_bundles for related 'math' calculators.

Input Schema

NameRequiredDescriptionDefault
nYesNumber of terms
typeYesSequence type
commonYesCommon difference (arithmetic) or ratio (geometric)
first_termYesFirst term (a1)

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so safety is covered. The description's only added behavior claim is the return shape {common_difference, nth_term, sum_of_n}, which duplicates the output schema and adds little beyond structured data.

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?

Two short sentences with the core computation front-loaded and no filler. The trailing list_bundles pointer is mildly tangential to invocation but is a legitimate navigation aid, keeping it just short of ideal.

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?

With an output schema present and full parameter coverage, the description need not explain return values or inputs. It covers the core purpose adequately; only explicit routing guidance among the many math siblings is missing.

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% and each of the four parameters is documented in-schema (including the arithmetic/geometric enum). The description adds no syntax or format detail beyond what the schema already provides, so the baseline 3 applies.

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 and resource: computing the nth term and sum of an arithmetic or geometric sequence. That scope is unambiguous and clearly separable from the hundreds of other calculate_* siblings, which cover unrelated domains.

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 implied by the stated computation, and the description points to list_bundles for related 'math' calculators, which is a discovery hint rather than tool-selection guidance. It never says when to prefer this over calculate_equation or calculate_factorial_permutation, nor any prerequisites.

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.