Skip to main content
Glama
aytacmehmet

sap-cloud-erp

by aytacmehmet

Create Purchase Order

s4_purchase_order_create
Destructive

Create a purchase order with required company code, supplier, purchasing organization, group, order type, and items. Supports account assignment to sales orders for individual PO items.

Instructions

Create a purchase order with at least one item. Required header: companyCode, purchaseOrderType, supplier, purchasingOrganization, purchasingGroup. Required per item: plant, material, orderQuantity, netPriceAmount. For account-assigned items (e.g. category 'M' individual PO tied to a sales order), set item.accountAssignmentCategory and item.accountAssignment {salesOrder, salesOrderItem} — this creates a PurchaseOrderAccountAssignment record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesPurchase order items
supplierYesSupplier/vendor number
companyCodeYesCompany code, e.g. '1010'
purchasingGroupYesPurchasing group, e.g. '001'
additionalFieldsNoExtra header fields merged into the request body as-is
purchaseOrderTypeYesPO type, e.g. 'NB'
purchasingOrganizationYesPurchasing organization, e.g. '1010'
Behavior3/5

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

Annotations already indicate destructiveHint: true and readOnlyHint: false, so the description's 'Create' aligns. It adds context about creating a PurchaseOrderAccountAssignment record for account-assigned items, but does not disclose side effects, authorization needs, or rate limits. The behavioral disclosure is adequate but not thorough.

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 two sentences long, front-loading the core purpose and required fields, then addressing a special case. Every sentence is necessary and no redundant information is present.

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

Completeness2/5

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

Given the complexity (nested objects, account assignment) and lack of output schema, the description fails to mention what the tool returns (e.g., purchase order number or confirmation). It also omits error handling or validation notes. The tool's response is critical for agent workflow, and its absence leaves a significant gap.

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 adds value by explicitly listing required header and item fields, and clarifying the relationship between accountAssignmentCategory and accountAssignment for sales order tie-ins. This goes beyond the schema's individual descriptions.

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 clearly states 'Create a purchase order with at least one item,' identifying the specific verb and resource. It distinguishes itself from sibling tools like s4_purchase_order_list, s4_purchase_order_get, and s4_purchase_order_update by focusing on creation.

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 description implicitly indicates when to use the tool (to create a purchase order) but provides no explicit guidance on when not to use it or how it compares to alternatives like s4_purchase_contract_create or s4_purchase_requisition_create. No context on prerequisites or exclusions is given.

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/aytacmehmet/sap-cloud-erp'

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