Skip to main content
Glama

Update Line Item

update_line_item
Destructive

Update a booking line item (description, price, quantity); the booking total is adjusted to match.

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": {
      "id": "<id>",
      "line_id": "<line_id>"
    },
    "name": "update_line_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's numeric id, from the matching list/get/search tool.
priceNoAn amount in US dollars, e.g. 250 or 250.00.
line_idYes
quantityNo
descriptionNoA free-text description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / description / description
      Added value: +"A free-text description."
    • addedInput schema / properties / id / description
      Added value: +"The record's numeric id, from the matching list/get/search tool."
    • addedInput schema / properties / price / description
      Added value: +"An amount in US dollars, e.g. 250 or 250.00."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavior beyond that: the parent booking total is recalculated to match the change, which is exactly the kind of cascade side effect an agent needs to know before mutating a line item. It does not disclose permission requirements or what happens to fields left out.

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?

A single front-loaded sentence with the verb, resource, and editable fields first, followed by the side-effect clause. Nothing is redundant and nothing pads the definition.

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 destructive, non-idempotent mutation with five parameters and no output schema, the description is adequate but leaves two operationally important questions open: whether this is a partial update or a full replacement of the line item, and what the caller gets back after the booking total is recalculated. The cascade note is a real strength, but the semantics of omission are missing.

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 coverage is 60%: price, description, and id are documented in the schema, while line_id and quantity have no descriptions. The description partially compensates by naming the three editable fields and noting that price/quantity changes drive the total recalculation, but it never clarifies that line_id identifies which line within the booking, nor whether omitted fields are left untouched or cleared. That is roughly baseline value.

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 names a specific verb and resource ('Update a booking line item') and enumerates the mutable fields (description, price, quantity), so an agent can immediately tell it apart from add_line_item / remove_line_item / list_line_items by verb alone. It stops short of naming those siblings explicitly as alternatives, which keeps it out of the top band.

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 only implied: the required id + line_id pair signals that this operates on an existing line item rather than creating one, and the sibling names make the create/remove/list alternatives inferable. There is no explicit 'use this instead of X when...' statement or precondition (e.g., must the booking be unlocked?).

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