Skip to main content
Glama

Compare periods

figa_compare_periods
Read-onlyIdempotent

Compare two explicit date ranges. Unknown valuations remain unknown; overlapping groups are not additive. Equivalent calendar periods (the same number of whole months, or the same dates whole years apart) include a percentage even when their day counts differ. Other unequal-length ranges return unequal_duration without a percentage.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspaceId": "<workspaceId>",
      "scope": "<scope>"
    },
    "name": "figa_compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesDate range {start, end} as YYYY-MM-DD, at most 24 calendar months, with optional filters {categoryIds, tagIds, recipientIds}: IDs within one filter are alternatives, different filters must all match, and a category includes its subcategories. comparison is the second range {start, end}; optional group limits both periods to the same categories, tags, recipients or recurring expenses.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / scope / description
      Added value: +"Date range {start, end} as YYYY-MM-DD, at most 24 calendar months, with optional filters {categoryIds, tagIds, recipientIds}: IDs within one filter are alternatives, different filters must all match, and a category includes its subcategories. comparison is the second range {start, end}; optional group limits both periods to the same categories, tags, recipients or recurring expenses."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral rules beyond that: unknown valuations stay unknown, overlapping groups are not additive, and unequal-length ranges return unequal_duration without a percentage. The only gap is that it does not state the 24-month range cap, though that lives in the schema description.

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?

Four short sentences, front-loaded with the core action, then the comparison semantics. Each sentence carries a distinct rule. Slight deduction because the opening sentence is thin and the duration-equivalence rule is dense without an example.

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?

An output schema exists, so return values need not be explained, and the schema fully documents the nested scope parameters. The description covers the non-obvious comparison semantics that an agent could not infer from structure alone. It could still say more about what happens with invalid or reversed ranges, but for a read-only comparison tool this is close to 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 description coverage is 100%, including a detailed scope description covering range format, filter semantics (IDs within a filter are alternatives, across filters all must match, categories include subcategories) and the role of group. The description adds no parameter-level detail beyond the schema, so the baseline 3 applies.

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 and resource: comparing two explicit date ranges. It is clear enough to distinguish from sibling summary tools like figa_get_summary, though it never names an alternative or states that it returns comparative analytics. The purpose is clear but 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 by 'Compare two explicit date ranges' -- an agent can infer it is for period-over-period analysis -- but there is no explicit when-to-use or when-not-to-use guidance and no named alternative such as figa_get_summary. The final sentences about duration equivalence are behavioral rules, not selection guidance.

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.

Resources