Skip to main content
Glama

Mango Inventory

List comments

list_comments
Read-only

Read the comments on exactly ONE of an item, a ticket or an order (the same one-target shape add_comment takes). Newest first, capped at 50 (truncated says the cap was hit). Each comment carries authorName, the text, createdAt with its UTC ISO twin createdAtIso (the server does no timezone conversion), and editedAt when it was changed after posting. viaAgent: true marks a comment an AI agent wrote on that person's behalf, including comments written through this connection; without it the person typed it themselves. The comments are the ones the connected user sees in the app: order comments require being an order participant (requester, assignee or an order manager).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdNoItem id (exactly one target)
orderIdNoOrder id (exactly one target), from list_orders
ticketIdNoTicket id (exactly one target), from list_tickets

Output Schema

NameRequiredDescriptionDefault
targetNo"item", "ticket" or "order"
commentsNoThe comments, newest first
truncatedNoThe 50-comment cap was hit — older comments exist in the app

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / orderId / description
      Previous value: -"Order id (exactly one target) — find it with list_orders"New value: +"Order id (exactly one target), from list_orders"
    • changedInput schema / properties / ticketId / description
      Previous value: -"Ticket id (exactly one target) — find it with list_tickets"New value: +"Ticket id (exactly one target), from list_tickets"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), yet the description still adds genuine behavior: newest-first ordering, a hard cap of 50 with a `truncated` signal, no server-side timezone conversion, and an authorization gate on order comments. Some of the text is field-level return documentation that the output schema already carries, which keeps it from a 5.

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?

Front-loaded with the target-selection rule before any field detail, and most sentences carry distinct information. It is a single dense paragraph, and the run of return-field definitions (authorName, createdAt, createdAtIso, editedAt, viaAgent) partly duplicates the output schema and could be trimmed.

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 read-only list tool with a full schema and an output schema, everything an agent needs to call it correctly is present: target exclusivity, ordering, result cap and its truncation flag, and the permission condition that can make order comments empty. Return shapes are covered by the output schema, so the description need not go further.

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 baseline would be 3, but the description adds the crucial constraint the schema only weakly conveys: the three ids are mutually exclusive and exactly one must be supplied (required count is 0, so the schema alone does not enforce this). It does not add format or sourcing detail beyond what the schema notes for list_orders/list_tickets.

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?

"Read the comments on exactly ONE of an item, a ticket or an order" gives a specific verb, resource and target shape, and explicitly ties itself to add_comment as the write counterpart, so an agent can place it relative to a known sibling without opening a schema.

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 states the selection rule (exactly one target, mirroring add_comment) and a real precondition: order comments require being a participant, requester, assignee or order manager. It does not explicitly rule out other listing tools or name an alternative for cross-target reads, so it falls short of full when/when-not guidance.

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