Skip to main content
Glama

guess_recurrence

Read-only

Guess a P-recursive (holonomic) recurrence from integer sequence terms or an OEIS A-number, then predict additional terms and indicate fit strength and integrality.

Instructions

Guess a P-recursive (holonomic) recurrence sum_{i=0..r} p_i(n) a(n-i) = 0 with deg p_i <= d, and predict further terms from it.

Give either terms (comma-separated, with the offset = n of the first term) or an anum (its terms; ext=True uses DATA + b-file terms). (r, d) are tried in order of the number of unknowns (r+1)(d+1); the first whose kernel is one-dimensional (mod a 61-bit prime, then exactly over Z) with at least spare more equations than unknowns is returned. Constant coefficients are d = 0. A guess, not a proof; spare_equations says how much the data over-determines it, and integral whether all predicted terms came out integers.

Input Schema

NameRequiredDescriptionDefault
extNo
anumNo
spareNo
termsNo
offsetNo
max_orderNo
n_predictNo
max_degreeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false, so the description carries the rest, and it does: it discloses the (r,d) search order by unknown count, the two-stage verification (mod a 61-bit prime, then exactly over Z), the `spare` over-determination requirement, and the caveat 'A guess, not a proof'. It even documents result fields (`spare_equations`, `integral`) that would otherwise be invisible since there is no output schema. Minor omissions are cost/runtime and failure behavior.

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 purpose is front-loaded in the first sentence before the procedural detail, and set notation is used economically. The paragraph is dense but each clause (input modes, search order, verification stages, result fields) carries distinct information, with little padding.

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 genuinely complex search tool with 8 parameters and no output schema, the description supplies the algorithm, the input modes, and the meaning of two return fields, which is most of what an agent needs. The remaining gaps — which parameter caps order/degree/prediction count and how it relates to sibling tools — keep it short of complete.

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 coverage is 0% across 8 parameters, so the description must compensate. It explains `terms` (comma-separated, offset = n of first term), `anum`, `ext` (DATA + b-file terms), and `spare` (extra equations beyond unknowns) well, but `max_order`, `max_degree`, and `n_predict` are never named — only implicitly referenced via 'r', 'd', and 'predict further terms', leaving three of eight params ambiguous.

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 states a specific verb (guess) and a precisely characterized resource (a P-recursive/holonomic recurrence with deg p_i <= d) plus the secondary action of predicting further terms. It is clear enough to distinguish from generic term-search tools, though it never names a sibling such as identify_transform or extend_from_formulas, so sibling differentiation is left implicit.

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 rather than stated: it says to supply either `terms` with an offset or an `anum`, which tells the agent how to feed the tool but not when to prefer it over identify_transform or extend_from_formulas. There are no explicit when-not conditions or alternatives named, so the agent must infer placement.

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