Skip to main content
Glama

Suggest items

suggest_items
Read-onlyIdempotent

Returns recent unique item lines (description, unit, price, VAT rate) from the past documents of a company, most recently used first, to compose a new document the usual way. Rows contain data entered by the user.

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": {
      "company_id": "<company_id>"
    },
    "name": "suggest_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoThe maximum number of lines to return; 20 when not given. Lines come from the last 200 documents of the last 12 months, drafts included, cancelled documents left out.
queryNoText to search for in the item descriptions, case-insensitive.
company_idYesThe id of the company, from list_companies.
customer_idNoOnly items of the documents of this customer of the company, from list_customers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real context beyond them: the data is drawn from the company's past documents, deduplicated to unique lines, ordered most-recent-first, and qualified with 'Rows contain data entered by the user,' which warns the agent about data provenance.

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?

Two compact sentences with the output shape and ordering front-loaded; nothing is redundant. The trailing clause 'the usual way' is vague filler that could be tightened, but overall the wording earns its place.

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 suggestion tool with four fully documented parameters and no output schema, the description supplies what an agent needs: the returned fields, the ordering, the data source, and a provenance caveat. Nothing required for correct invocation is 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 description coverage is 100%, and the schema itself documents the 20-line default, the 200-document/12-month window, draft inclusion and cancelled-document exclusion. The description adds only that the results come from past documents of the company and are most-recently-used first, which is marginal beyond the structured fields.

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 uses a specific verb and resource ('Returns recent unique item lines') and enumerates the returned fields (description, unit, price, VAT rate), plus the ordering ('most recently used first') and the intent ('to compose a new document'). It is clearly distinguishable from write-oriented siblings such as add_invoice_item, though it never names an alternative explicitly.

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 by the phrase 'to compose a new document the usual way' — an agent can infer this is an autocomplete/suggestion source during document creation. There is no explicit when-to-use vs. when-not guidance, no mention of preferring a direct item lookup, and no stated prerequisites beyond the company_id parameter.

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