Skip to main content
Glama

Upsert project period

upsert_project_period
Idempotent

Create or update one reporting / payment period. Planned, reported, approved and received are four separate amounts on purpose — they routinely differ, and the difference is the point. Pass period_id to update, or project_id + label to create.

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": "upsert_project_period"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoe.g. "M1–M18".
notesNo
statusNo
ends_onNo
period_idNo
starts_onNo
project_idNo
sort_orderNo
received_onNo
reported_onNo
report_due_onNo
planned_amountNo
approved_amountNo
received_amountNo
reported_amountNo
payment_expected_onNoWhen the payment for this period is expected — the milestone to keep.
payment_expected_amountNo

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 readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real business context about why the four amounts are distinct, which prevents an agent from 'normalizing' them. However, for a 17-parameter upsert it never says whether omitted fields are left untouched or nulled on update, which is the single most consequential behavioral question here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the operation, then the one piece of domain context that prevents a real mistake, then the create-vs-update rule. No filler and no repetition of schema content.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 17 parameters, no required fields, 12% schema coverage and no output schema, the description leaves too much for the agent to guess: partial-update semantics, date formats, status transitions, and the relationship between the four amount fields and the four corresponding dates. The complexity of this tool demands substantially more coverage than three sentences provide.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 12%, so the description must carry most of the parameter meaning, and it does not. It explains only the three identity parameters (period_id, project_id, label) and gestures at the four amount fields conceptually, leaving status enum values, the three date fields, payment_expected_on vs payment_expected_amount, sort_order and notes wholly undocumented. The amount discussion clarifies intent but not which field to populate in which phase.

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?

"Create or update one reporting / payment period" gives a specific verb pair and a clearly bounded resource, and the upsert branching is spelled out immediately. It does not name a sibling, but the resource (period) and the create/update distinction are unambiguous enough that an agent can place it in the catalog.

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

Usage Guidelines4/5

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

The final sentence gives an explicit selection rule: period_id to update, project_id + label to create. That resolves the main ambiguity for an upsert tool. There is no when-not guidance (e.g., that delete_project_period handles removal, or whether this should be used for periods created elsewhere), so it stops just short of the top score.

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