Skip to main content
Glama

Remove Line Item

remove_line_item
DestructiveIdempotent

Remove a booking line item (subtracts its amount from the total).

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

Input Schema

NameRequiredDescriptionDefault
idYesThe record's numeric id, from the matching list/get/search tool.
line_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The record's numeric id, from the matching list/get/search tool."
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact — that removal reduces the total by the line's amount — but says nothing about what happens to an already-zeroed or locked booking, or whether the operation is rejected in those cases.

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 core action first and the total-adjustment consequence in parentheses. Nothing is wasted and it is easy to scan in a long tool list.

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 small two-parameter mutation with rich annotations and no output schema, the definition covers the essential act and its side effect. It remains thin on error conditions and on the undescribed `line_id` parameter, which an agent calling this blindly may mis-supply.

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 50%: `id` is documented in the schema, but `line_id` has no description anywhere and the description text adds no parameter meaning at all. With only two required parameters, the untagged `line_id` is a real ambiguity an agent must guess at.

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 ("Remove a booking line item") and adds the measurable effect on the parent total, which clearly separates it from add_line_item or update_line_item. It stops short of explicitly contrasting with those siblings, but the resource is precise enough to select on.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g. booking status requirements), and no mention of update_line_item as an alternative for correcting rather than deleting. Usage is only inferable from the name and the word "Remove".

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