Skip to main content
Glama
ClockNext

ClockNext MCP Server

Official
by ClockNext

ClockNext: update unit

clocknext_update_unit
Idempotent

Replace a billing unit with a complete new definition, clearing any omitted fields. Use for full updates to a unit's pricing, tiers, and settings.

Instructions

Replace a unit by id with its COMPLETE new definition — a full rewrite, NOT a partial patch: any optional field you omit (description, tiers, flatPrice) is CLEARED, not left as-is. Read the current unit with clocknext_get_unit first, edit, then send the whole object back. Changing agentKey re-points which runtime signals map here — do it deliberately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unit id to update.
nameYesUnit name.
tiersNoSLAB/VOLUME only: 1–50 tiers, ordered; only the last may have upTo:null.
agentKeyYesLowercased stable key consumption is reported against (sent as `agentKey` when recording unit usage). The unit's durable identity — unique org-wide, chars [a-z0-9._-]; a rename never changes it.
isActiveNoWhether the unit is active/sellable.
flatPriceNoFLAT only: price per event. Defaults to 0.
descriptionNoOptional human-readable description.
pricingTypeYesFLAT = a single per-event price; SLAB/VOLUME = tiered pricing.
Behavior5/5

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

Annotations already indicate readOnlyHint=false and idempotentHint=true. The description adds the critical behavioral trait that omitted optional fields are CLEARED, not preserved, and that changing agentKey re-points signals — important context beyond the annotations. No contradiction.

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 key concept, then workflow, then warning. Every sentence is purposeful; no redundant phrasing.

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?

For an 8-parameter destructive update with no output schema, the description covers the essential behavioral concerns: full rewrite, clearing of omitted fields, workflow, and the agentKey side effect. It misses explicit error/return behavior, but schema covers parameter detail, so it is sufficiently complete.

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

Parameters4/5

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

Schema coverage is 100%, so the schema fully documents each parameter. The description adds the semantic that the object is a complete replacement, meaning omitted optional fields reset — a meaningful addition to understanding parameter behavior. However, it doesn't add per-parameter syntax or format details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states 'Replace a unit by id with its COMPLETE new definition' — a specific verb, resource, and scope. It also distinguishes itself from a partial patch, clearly marking it as a full-update operation distinct from sibling create/archive tools.

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?

It instructs to 'Read the current unit with clocknext_get_unit first, edit, then send the whole object back,' providing a concrete when-to-use workflow. It warns about the agentKey re-pointing effect, but does not explicitly name alternative tools for partial updates, so a 4 rather than 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ClockNext/clocknext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server