Skip to main content
Glama
ohneben

ohneben's Wafeq MCP

wafeq_quotes_line_items_create

Create quote line items by providing quote ID, description, quantity, and unit price. Assign tax rates, discounts, or cost centers to each line.

Instructions

๐ŸŸก WRITE ยท creates data ยท Quote Line Items ยท POST /quotes/{quote_id}/line-items/

Create quote line item

Endpoint for creating a new quote line item.

Not idempotent โ€” calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesAugment ``custom_fields`` in the output with computed CALCULATED field values. Apply to any line-item serializer whose model has ``get_resolved_custom_fields``.
quote_idYes
idempotency_keyNoOptional idempotency key (sent as the X-Wafeq-Idempotency-Key header). A UUID v4 is generated automatically when omitted, so an automatic network retry can never duplicate this operation. Pass your own stable value to make a deliberate re-invocation safe as well.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior4/5

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

The annotations already declare idempotentHint=false, but the description goes further by stating the concrete consequence โ€” "calling twice creates two records" โ€” and the mitigation: pass idempotency_key or let the server generate one for safe retries. This is genuinely useful operational context beyond what the structured fields provide. The description is consistent with all annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false); no contradiction.

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?

The description is front-loaded with a clear WRITE prefix and the endpoint, and the idempotency note is valuable. But it contains redundancy: "Create quote line item" and "Endpoint for creating a new quote line item" restate the same purpose, which the annotation title also repeats. It could be trimmed to the prefix line plus the idempotency sentence without losing information.

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?

For a write tool with a nested 10-property body and no output schema, the description covers the most critical non-obvious behavior (duplicate-record risk and retry safety) well. However, it omits the success response shape, prerequisites (e.g., the quote must exist), and error/validation behavior. It is adequate but leaves the agent to infer these from the schema and context.

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 67%, and most body properties (description, quantity, unit_amount, tax_rate, discount, custom_fields, etc.) are already documented in the schema. The description adds marginal value: the endpoint path clarifies quote_id's role as a URL path parameter, and it re-emphasizes idempotency_key, though the schema's idempotency_key description is already thorough. Notably, the confusing body-level schema description ("Augment custom_fields in the output...") is a backend artifact that the tool description does nothing to correct.

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 states a specific verb and resource โ€” "creating a new quote line item" โ€” and pins it to the exact endpoint POST /quotes/{quote_id}/line-items/. It is unambiguous about what the tool does. However, it does not explicitly differentiate itself from the many sibling line-item create tools (invoices, bills, purchase_orders, credit_notes, debit_notes, simplified_invoices); the 'quotes' scope is carried by the tool name and endpoint path rather than by the description itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance about when to use this tool versus alternatives. It never mentions the sibling update/partial_update/destroy/retrieve/list operations on quote line items, nor does it state prerequisites such as the parent quote needing to exist. The only contextual note is about idempotency and retry safety, which addresses invocation behavior, not tool selection.

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/ohneben/Wafeq-MCP'

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