Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_contract_activities

Retrieve all billable usage and consumption activities for a contract, optionally filtered by performance date range using dateFrom and dateTo.

Instructions

Retrieve all activities for a specific contract, optionally filtered by performance date range. Returns all billable usage and consumption records associated with the given contract number. Use dateFrom and dateTo to narrow results to a specific time period.

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": {
      "contractNumber": "<contractNumber>"
    },
    "name": "get_contract_activities"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToNoEnd of the performance date range filter in YYYY-MM-DD format. Only activities performed on or before this date are returned.
dateFromNoStart of the performance date range filter in YYYY-MM-DD format. Only activities performed on or after this date are returned.
contractNumberYesThe contract number whose activities should be retrieved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose that results are billable usage and consumption records for the contract, which is meaningful return-content context; however, it omits pagination behavior, result limits, permission requirements, and what happens for an invalid or empty contract number.

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?

Front-loaded with purpose and return content, and only three sentences. The third sentence largely restates the optional date-range filtering already introduced in sentence one, which is mild redundancy but not harmful.

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?

There is no output schema, so the description must convey what comes back; it does so at a high level by naming billable usage and consumption records. It is still incomplete for a 'retrieve all' tool because pagination/result-set size and access requirements are unaddressed.

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 the schema already documents dateFrom/dateTo formats and inclusive boundary semantics, so the baseline is 3. The description's phrasing that these narrow a performance date range reinforces intent but adds little beyond the schema.

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 (Retrieve) and resource (activities) scoped to a contract, and clarifies it returns billable usage/consumption records. The contract scoping implicitly distinguishes it from the sibling list_activities, but it never names that sibling, so the differentiation is inferred rather than explicit.

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?

It tells the agent to use dateFrom and dateTo to narrow results, which is useful filter guidance. But there is no when-to-use/when-not framing, no mention of when to prefer list_activities over this contract-scoped variant, and no prerequisites such as contract access requirements.

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

Deploy Server

Other Tools