Skip to main content
Glama
ohneben

ohneben's Wafeq MCP

wafeq_debit_notes_line_items_create

Create a line item on a debit note by providing account, description, quantity, and unit amount. Use an idempotency key to prevent duplicate entries when retrying the request.

Instructions

๐ŸŸก WRITE ยท creates data ยท Debit Note Line Items ยท POST /debit-notes/{debit_note_id}/line-items/

Create debit note line item

Endpoint for creating a new debit note 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``.
debit_note_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

A3.7/5.0
Behavior5/5

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

The description clearly discloses non-idempotency ('Not idempotent โ€” calling twice creates two records') and explains how idempotency_key makes retries safe, adding useful context beyond the idempotentHint=false annotation. It also leads with 'WRITE ยท creates data', consistent with readOnlyHint=false.

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

Conciseness2/5

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

The front-loaded banner and idempotency warning are useful, but 'Create debit note line item' and 'Endpoint for creating a new debit note line item' repeat the same information. Several segments are redundant rather than earning their place.

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 nested create call, the description gives the route and retry semantics but no description of the expected response or any guidance on the body contract; the schema must carry that weight. With no output schema and a poorly described body parameter, some context is missing, though the annotations cover the safety profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no new detail about the body fields or debit_note_id; the path template is the only parameter hint it provides. The schema already documents most fields, but the required body shape is left entirely to the schema, whose body description is an unrelated output note.

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 states a specific verb ('Create') and resource ('debit note line item'), and provides an exact POST path with debit_note_id. It is clearly distinguishable from sibling tools targeting line items on other document types.

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 implies its usage by labeling itself as the endpoint for creating a new debit note line item and warns against duplicate calls. However, it does not mention alternatives such as update, partial_update, or destroy, nor does it state explicit when-not-to-use conditions.

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