Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_activity

Create a billable activity record for a contract to log usage or consumption—such as hours, API calls, or units—so it can be included on a future invoice.

Instructions

Create a new activity record for a contract. An activity represents a billable usage or consumption event (e.g. API calls, hours worked, units consumed) that will be included on a future invoice. Requires an item number and quantity at minimum. Optionally override the unit price, add a description, set the performance date range, or schedule the activity for a specific billing date.

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>",
      "itemNumber": "<itemNumber>",
      "quantity": "<quantity>"
    },
    "name": "create_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityYesThe quantity of the item consumed or used in this activity.
scheduledNoThe scheduled billing date in YYYY-MM-DD format. If set, the activity will be included on the next invoice generated on or after this date.
itemNumberYesThe item number (product/service SKU) that this activity records usage for.
descriptionNoA free-text description for the activity, providing additional context about what was consumed or performed.
contractNumberYesThe contract number to create the activity for.
individualPriceNoOverride the default unit price for this activity. If omitted, the price from the item catalog is used.
performanceDateEndNoThe end date of the performance period in YYYY-MM-DD format. Indicates when the service or usage ended.
performanceDateStartNoThe start date of the performance period in YYYY-MM-DD format. Indicates when the service or usage began.

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?

No annotations are provided, so the description must carry the full behavioral burden. It usefully discloses that scheduled activities are included on the next invoice generated on or after the scheduled date and that omitted individualPrice falls back to the item catalog price, but it does not describe mutation side effects, permission requirements, reversibility, or error 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 description is three sentences, front-loaded with the core action and domain definition. It is efficient and avoids unnecessary wording, though it could be slightly tighter by reducing repetition of optional fields already covered in the schema.

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?

For a mutation tool with no annotations and no output schema, the description covers the domain, required inputs, optional inputs, and some billing behavior. It still leaves meaningful gaps around permissions, whether the activity is immediately billable or pending, and error or idempotency behavior.

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%, so the schema already documents all eight parameters in detail. The description reinforces the minimum required fields and groups optional fields conceptually, but most of its parameter detail duplicates what is already in 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?

The description gives a specific verb and resource: create an activity record for a contract. It also defines the domain concept as a billable usage or consumption event that will appear on a future invoice, which helps an agent distinguish this from generic creation tools, though it does not explicitly contrast with siblings such as delete_activity.

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 states the minimum required inputs and lists optional fields, which implies the appropriate usage context for recording billable usage. However, it does not state when to use this tool versus alternatives, nor does it mention prerequisites such as contract existence or permissions.

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