Skip to main content
Glama

Get service calculation

figa_get_service_calculation
Read-onlyIdempotent

Read a service calculation for the requested month: stored price/weekday settings plus the month's counted and excluded dates with reasons, session count, amount, payment date and current settings and activity revisions.

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>",
      "expenseId": "<expenseId>",
      "month": "<month>"
    },
    "name": "figa_get_service_calculation"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthYesCalculation month as YYYY-MM.
expenseIdYesTemplate ID of the service billed per session. Occurrence IDs and virtual aliases are rejected.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expenseId / description
      Added value: +"Template ID of the service billed per session. Occurrence IDs and virtual aliases are rejected."
    • addedInput schema / properties / month / description
      Added value: +"Calculation month as YYYY-MM."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds substantive behavioral context by spelling out the composition of the result: stored settings, counted and excluded dates with reasons, session count, amount, payment date, and current settings/activity revisions. It does not mention error behavior or what happens for an uncounted month, but for a pure read this is solid added value.

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?

A single sentence with zero filler, front-loaded with verb and resource before the enumeration of returned data. The trailing list of returned fields is dense but each item carries information; only 'current settings and activity revisions' is slightly opaque.

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?

No output schema exists, so the description bears the burden of describing return values, which it does by listing the result's components. All three required parameters are fully described in the schema, and the tool is a straightforward read. A note on empty/unbilled months or on how excluded dates are determined would complete it.

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%, with month format, expenseId (template ID; occurrence IDs and virtual aliases rejected) and workspaceId scoping all documented in the schema. The description only echoes the month scoping ('for the requested month') and adds no format, aliasing, or workspace semantics beyond the schema. Baseline 3 is appropriate.

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 uses a specific verb and resource ('Read a service calculation') and scopes it to 'the requested month', then enumerates what it returns (price/weekday settings, counted and excluded dates, session count, amount, payment date, revisions). It does not explicitly name how it differs from figa_preview_service_calculation or figa_update_service_calculation, so sibling differentiation is left to inference, but the read-only framing is clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus the obvious alternatives (preview, update), nor any exclusions or preconditions. Usage is only implied by the word 'Read'. The agent must infer the read-vs-preview-vs-update choice from tool names alone.

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