Skip to main content
Glama

SAP OCI 4.0 / 5.0 PunchOut-Warenkorb prüfen

validate_oci_cart
Read-onlyIdempotent

Validates SAP OCI 4.0/5.0 PunchOut cart payloads from JSON, form-encoded, or HTML input; checks item indexing, required fields, units, field lengths, negative values, and totals.

Instructions

Validiert SAP OCI 4.0 / 5.0 PunchOut-Warenkorb-Payloads (JSON, application/x-www-form-urlencoded oder HTML-Formular): 1-basierte NEW_ITEM-Indizierung, Pflichtfelder DESCRIPTION/QUANTITY/UNIT/PRICE/PRICEUNIT/CURRENCY, UN/ECE-Einheitenprüfung (PCE/C62/MTR/KGM/LTR/SET statt STK), Feldlängen-Grenzen (<= 40 / <= 255 Zeichen), negative Mengen/Preise und BigInt-Gesamtsummen.

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

Input Schema

NameRequiredDescriptionDefault
pfadNoRelativer Pfad zur OCI-Payload-Datei innerhalb von BMECAT_ORDNER
payloadNoDirektes SAP-OCI-Payload (JSON, Form-Encoded oder HTML-Form)

Output Schema

NameRequiredDescriptionDefault
okYes
befundeYes
positionenYes
fehlerAnzahlYes
eingabeFormatYes
warnungAnzahlYes
positionenAnzahlYes
summenJeWaehrungYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds that this is a validation pass over three accepted encodings and names the rule categories, but does not say whether failures raise an error or are returned as a report, nor whether validation stops at the first violation or collects all findings.

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?

A single densely packed sentence with the resource named first and the rule set enumerated afterwards, so nothing is buried. It is slightly overloaded by the long parenthetical list of checks and the bilingual field-length phrasing, which a short bullet breakdown would read faster.

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?

Well matched to complexity: an output schema exists so return values need no prose, both parameters are documented in the schema, and annotations cover safety. The only material omission is the error-versus-report behavior on a failed validation, which an agent would want before invoking on malformed input.

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% and both properties carry their own descriptions (relative path under BMECAT_ORDNER; direct payload string), so the schema does the heavy lifting for a baseline of 3. The description contributes beyond that by clarifying that the payload may arrive as JSON, form-encoded, or an HTML form, which explains what the `payload` string may legitimately contain.

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?

States a specific verb ("Validiert") and a specific resource (SAP OCI 4.0/5.0 PunchOut-Warenkorb-Payloads), then enumerates the exact rule set checked: 1-based NEW_ITEM indexing, mandatory fields, UN/ECE unit codes, field-length limits, negative quantities/prices, and BigInt totals. This clearly separates it from siblings such as validate_bmecat, which targets a different payload format.

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 implied — validating an OCI cart payload before further processing — but there is no explicit statement of when to prefer this over validate_bmecat or the conversion tools, and no note on prerequisites or when not to use it. An agent can infer the context from the payload formats listed, but must reason rather than read the guidance.

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