Skip to main content
Glama

Mango Inventory

Add comment

add_comment

Leave a comment on exactly ONE of an item, a ticket or an order: exactly one of itemId / ticketId / orderId plus the text ("note on the beamer: lamp flickers"). The comment appears in that record's activity timeline under the connected user's name, marked "(via AI agent)", and notifies the people involved (item holder and responsible person, ticket reporter and assignee, order participants). Order comments require being an order participant (requester, assignee or an order manager). Plain text only: @-mentions are not supported. list_comments reads the thread back with the same one target id. Not idempotent: a repeated call posts a second comment.

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": {
      "text": "<text>"
    },
    "name": "add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe comment text (plain text)
itemIdNoItem id (exactly one target)
orderIdNoOrder id (exactly one target)
ticketIdNoTicket id (exactly one target)

Output Schema

NameRequiredDescriptionDefault
targetNo"item", "ticket" or "order"
viaAgentNoTrue — the comment is marked as written via AI agent
commentIdNoThe new comment's id
authorNameNoWhose name the comment carries

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false and openWorld=false, and the description adds real side-effect detail beyond them: the comment lands in the record's activity timeline under the connected user's name, is tagged "(via AI agent)", and notifies the involved parties per target type. The non-idempotency note ("a repeated call posts a second comment") concretizes the annotation into a consequence, though the notification channel (email, in-app, push) is left unspecified.

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

Conciseness4/5

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

The target-selection constraint and the text example are front-loaded, and nearly every clause carries information an agent needs at call time. It is dense to the point of being a single run-on block, which slightly hurts scannability, but there are no filler sentences to cut.

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

Completeness5/5

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

For a write tool with an existing output schema, the description covers everything an agent needs before calling: valid target combinations, permissions, side effects and who gets notified, formatting limits, and repeat-call behavior. Return-value detail is correctly left to the output schema.

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 baseline is 3; the description earns above that by stating the cross-parameter mutual-exclusion constraint ("exactly one of itemId / ticketId / orderId"), which the JSON schema cannot express, and by giving a concrete example of the text field's expected shape. The authorization nuance attached specifically to orderId adds meaning the schema lacks.

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?

Opens with a specific verb and resource ("Leave a comment") and immediately constrains it to exactly one of item, ticket or order, which is the defining behavior of this tool. It also contrasts itself with list_comments, so an agent can separate the write path from the read path without inspecting either schema.

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

Usage Guidelines5/5

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

Gives explicit selection rules (exactly one of itemId / ticketId / orderId), a prerequisite for the order case (must be requester, assignee or order manager), and names the alternative for reading a thread back (list_comments). It even states the when-not for formatting features: @-mentions are unsupported, so plain text is the only valid input.

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