Skip to main content
Glama
bdiaby1

Lexware Office MCP Server

by bdiaby1

search

Run a JavaScript async arrow function to explore the curated Lexware Office API catalog and uncover endpoints, request shapes, workflows, and domain caveats before executing API calls.

Instructions

Search the curated Lexware Office API catalog by running a JavaScript async arrow function.

Use this before execute to discover endpoints, request shapes, response notes, workflows, and domain-specific caveats.

Available global:

declare const spec: LexwareApiCatalog;

Useful starting points:

  • spec.info.domainIndex: compact map from business domains to endpoint lists

  • spec.info.writesEnabled: whether this server currently allows POST/PUT/PATCH/DELETE — check before planning writes

  • spec.paths: path -> method -> operation catalog with params, requestBody, responses, examples, capabilities, docsUrl

  • spec.workflows: curated recipes for reporting, sales documents, files/uploads, webhooks, and API quirks

  • spec.info.voucherStatusSemantics and financeReportingSemantics: finance/status guidance for revenue/Umsatz/profit questions

Sandbox: no network, filesystem, process, fetch, imports, or API key. Return JSON-serializable data; console logs are captured.

Examples:

async () => Object.entries(spec.info.domainIndex) .filter(([name, domain]) => [name, ...domain.tags].some(value => value.toLowerCase().includes('contact'))) .map(([name, domain]) => ({ name, ...domain }))

async () => { const op = spec.paths['/v1/voucherlist']?.get; return { summary: op?.summary, parameters: op?.parameters, notes: op?.notes, examples: op?.examples }; }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJavaScript async arrow function to search the Lexware API catalog
Behavior5/5

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

No annotations are present, so the description carries the full burden. It discloses sandbox restrictions (no network, filesystem, process, fetch, imports, API key), return behavior (JSON-serializable data, console logs captured), and a critical check (spec.info.writesEnabled) before planning writes. This is exemplary behavioral disclosure.

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?

Although the description is relatively long, it is densely packed with actionable information. The structure front-loads the purpose, then logically covers usage, globals, key starting points, sandbox constraints, and examples. Every sentence adds value, and the code examples are illustrative rather than filler.

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

Completeness5/5

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

The tool is complex (user-supplied JavaScript), has no annotations, and no output schema. The description covers all necessary context: what to query, the shape of the catalog, examples, restrictions, and the writesEnabled safety check. It is fully self-contained for an agent to decide when and how to invoke it.

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

Parameters5/5

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

The schema only offers a terse description for 'code', but the tool description provides extensive semantics: the code must be an async arrow function, a global 'spec' object is available, and examples demonstrate valid usage patterns. This goes far beyond schema coverage.

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 opens with a specific verb and resource: 'Search the curated Lexware Office API catalog by running a JavaScript async arrow function.' It clearly distinguishes from siblings by stating 'Use this before execute' and positioning the tool as a discovery mechanism.

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

Usage Guidelines5/5

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

Explicitly instructs when to use the tool ('Use this before execute') and what to use it for (discover endpoints, request shapes, response notes, workflows, caveats). This implicitly contrasts with the 'execute' sibling, providing clear contextual guidance without needing to name alternatives.

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/bdiaby1/claude_lexware_mcp_2'

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