Skip to main content
Glama

analyze_abaninja_prices

Read-only

What has actually been quoted, at what unit price, and how often it was accepted — grouped over the mirrored AbaNinja positions. Answers the question a price list is built from: which line items recur, how many different prices were charged for the same thing, and which of them turned into an accepted quote or a paid invoice. Requires sync_abaninja to have run; the result states how fresh the mirror is and how many documents are still missing their positions, because an analysis over half a stock is worse than none. Read-only, no API call.

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

Input Schema

NameRequiredDescriptionDefault
toNoDocument date to, YYYY-MM-DD.
fromNoDocument date from, YYYY-MM-DD.
limitNoMax groups returned (default 60).
doc_typeNoDefault 'quote'.
min_occurrencesNoOnly line items seen at least this often (default 2 — a one-off is not a price list entry).

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 declare readOnlyHint=true; the description reinforces this and adds non-obvious behavior: no API call is made, the result reports mirror freshness and the count of documents missing positions, and partial coverage is explicitly flagged as a risk. That staleness/completeness disclosure is genuine value beyond the annotation set. It stops short of describing grouping keys or ordering in detail.

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

Conciseness3/5

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

Content is front-loaded and the ordering is sensible (what it does, outputs, prerequisite, caveat), but the prose is long and em-dash-heavy, and rhetorical flourishes like 'an analysis over half a stock is worse than none' cost space without adding operational detail. It could be tightened by roughly a third with no loss.

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

Completeness4/5

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

There is no output schema, so the description must characterize the return, and it does: groups over positions plus freshness and missing-position counts. Combined with the stated prerequisite and read-only nature, an agent has enough to decide and call correctly; only the exact result shape (field names, ordering) is left implicit, which is acceptable for an aggregate read.

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 100%, so all five parameters are already documented, including defaults and the enum. The description adds interpretive context for min_occurrences ('which line items recur', 'a one-off is not a price list entry') but supplies no format, timezone, or grouping semantics for from/to or doc_type beyond the schema.

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 conveys a specific analysis: unit prices actually quoted, grouped over mirrored AbaNinja positions, with recurrence counts and accept/invoice outcomes. The purpose is clear and distinguishable from the sibling list_abaninja_quotes / list_abaninja_invoices tools, which return raw documents rather than aggregates. The opening is phrased as an interrogative ('What has actually been quoted...') rather than a verb+resource statement, which slightly softens it, but the substance is unambiguous.

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 a real precondition ('Requires sync_abaninja to have run') and frames the use case ('Answers the question a price list is built from'). It does not explicitly name an alternative (e.g., use list_abaninja_quotes for raw rows), so the exclusions are implied by 'grouped'/aggregate framing rather than stated.

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.