Skip to main content
Glama
cmendezs

mcp-einvoicing-be

by cmendezs

peppol_get_service_endpoint

Retrieve the AS4 endpoint for a Peppol participant's document type by resolving the SMP hostname via DNS and fetching service metadata. Handles redirects, indicating when a follow-up is required, to enable e-invoice routing.

Instructions

Fetch the AS4 endpoint for a Peppol participant's document type.

Resolves the SMP hostname via DNS, then fetches service metadata for document_type_id. If the SMP returns a redirect, the result's redirect_url is set and endpoint_url is None; callers must not follow more than one redirect hop (SMP 1.4.0 §3.2).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYesPeppol participant ID or adaptable national identifier.
environmentNo"production" or "test".production
document_type_idNoPeppol document type identifier URN (default: BIS Billing 3.0 invoice).urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and adds valuable specifics: it states that redirects result in redirect_url being set and endpoint_url being None, and that callers must not follow more than one redirect per SMP 1.4.0 §3.2. This is more than a generic fetch description, though it omits other possible behaviors like error cases.

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 tight sentences, with the purpose front-loaded and a specific edge case supported by a spec reference. There is no filler or redundant repetition of schema fields.

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?

For a small, well-schematized tool with an output schema, the description covers the core workflow, an important redirect edge case, and a caller constraint. It could mention error/response details, but the output schema reduces that need.

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?

The input schema has 100% description coverage, including defaults and formats for environment and document_type_id, so the schema already provides the baseline. The description only adds minimal semantic reinforcement by mentioning that service metadata is fetched for *document_type_id*.

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 is led by a specific action and object: 'Fetch the AS4 endpoint for a Peppol participant's document type.' It clearly identifies the resource (AS4 endpoint) and scope (participant + document type), and this distinguishes it from siblings like resolve_peppol_dns or peppol_send.

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

Usage Guidelines4/5

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

The description conveys clear usage context by outlining the DNS-to-service-metadata resolution flow, so an agent knows this is the endpoint lookup step. It does not explicitly name alternatives or exclusions, stopping short of the 5-level guidance.

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/cmendezs/mcp-einvoicing-be'

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