Skip to main content
Glama

compare_periods

Read-only

Compare current period vs previous period.

Week-over-week or month-over-month comparison with percentage changes across all key metrics.

Args: time_period: Current period (previous auto-calculated).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
time_periodNolast_7_days

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a read-only, non-destructive operation, so the safety profile is covered. The description adds one genuinely useful behavioral detail – the previous period is auto-calculated and need not be supplied – but says nothing about coverage limits or how 'key metrics' are selected.

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 core meaning is front-loaded in the first sentence, with the modes and the auto-calculation note following in short order. The 'Args:' block is slightly boilerplate for a single parameter but is not wasteful.

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

Completeness3/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. The remaining gap is invocation correctness: with a single free-form string parameter at 0% schema description coverage, an agent still cannot tell which literal values (enum-like strings vs. dates) are accepted.

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 0%, so the description must carry the parameter, and it does explain that time_period is the current period and the comparison baseline is derived. However, it never states accepted values or format (the schema default is 'last_7_days', yet the prose only mentions week-over-week/month-over-month), leaving ambiguity about what strings are valid.

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?

States a specific verb and resource – compares the current period against the previous one – and clarifies the scope is percentage change across all key metrics. It is clear what the tool does, though it does not differentiate itself from nearby comparison tools such as compare_team_members.

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?

The description implies usage by naming week-over-week and month-over-month modes, which suggests when the tool applies. It gives no explicit when-to-use versus alternatives and no exclusions, so guidance is implied rather than stated.

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