Skip to main content
Glama
trhonpavel
by trhonpavel

Update promotion

update_promotion
Idempotent

Change a promotion's status, code, value, usage limit, or dates, identified by promotion_id or code.

Instructions

Changes a promotion: activate/deactivate (status), rename the code, change the value, usage limit or validity dates. Identify it by promotion_id or code.

Input Schema

NameRequiredDescriptionDefault
codeNoCurrent code, to find the promotion
valueNo
statusNo
ends_atNonull removes the end date
new_codeNo
starts_atNonull removes the start date
usage_limitNonull removes the limit
promotion_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), so the bar is lower. The description adds that activation/deactivation is done via status and lists what is mutable, but omits partial-update semantics, error behavior, and permission requirements for a mutation tool.

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?

Two sentences, zero filler, with the mutability list and the identification method front-loaded. Every clause earns its place.

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 an 8-parameter optional-field mutation with 50% schema coverage and no output schema, the description covers the what (fields) and the how-to-identify, but says nothing about unspecified fields remaining unchanged, validation constraints (e.g., value > 0, date ordering), or the result. Sufficient to start, incomplete for safe use.

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 only 50%, so the description must compensate. It does: it clarifies that promotion_id or code is used to locate the record and that new_code performs a rename, a meaning absent from the schema, and ties value/usage_limit/dates/status to concrete changes.

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?

States a specific verb (changes) and resource (a promotion), then enumerates the mutable aspects: status, code, value, usage limit, validity dates. It also distinguishes itself from list/create/delete_promotion by naming the update operation and the identifier fields used to target the record.

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?

Usage is implied: use this to modify an existing promotion, identified by promotion_id or code. It does not state when to prefer it over siblings (e.g., delete_promotion for removal) or any preconditions such as needing an existing promotion id. Adequate but not explicit.

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