Skip to main content
Glama
parmarnaresh86

SAP Business One Order-to-Cash MCP Server

get_purchase_analysis

Aggregate purchase invoices by vendor for a date range to identify top suppliers and analyze purchasing patterns.

Instructions

Aggregate purchase invoices by vendor for a date range to show top suppliers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNNo
toDateNo
fromDateNo
Behavior3/5

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

With no annotations, the description carries the full burden of explaining behavior. It conveys that the tool is a non-mutating aggregation/read operation, which is useful. But it does not disclose how 'top suppliers' is determined (by total amount, invoice count, etc.), whether dates are inclusive, or what the output shape is.

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?

The description is a single, front-loaded sentence with no filler. Every word contributes meaning: action, resource, grouping, filter, and purpose. This is an ideal length for a tool definition.

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?

The tool is relatively simple and has only three optional parameters, and the description covers the core idea. But with no output schema and no annotations, the description still leaves ambiguity around the ranking metric and return format, so it is adequate for selection but not fully complete for reliable invocation.

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 0%, so the description must compensate. It does partially: 'date range' maps to fromDate/toDate and 'top suppliers' maps to topN. However, it doesn't clarify defaults, date inclusivity, or whether topN limits the number of suppliers or the number of invoices.

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?

The description says exactly what the tool does: 'Aggregate purchase invoices by vendor for a date range to show top suppliers.' It names a specific action (aggregate), resource (purchase invoices), grouping dimension (vendor), filter (date range), and output intent (top suppliers). This clearly separates it from sales-side siblings like get_sales_analysis and get_top_customers.

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?

The intended use is implied: call this when you need a supplier ranking from purchase invoices over a date range. However, there is no explicit guidance about when not to use it or which sibling tool might be a better fit, such as analyze_vendor_concentration or get_ap_aging.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/parmarnaresh86/AgentSphere-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server