Skip to main content
Glama

sync_abaninja

Destructive

Mirror AbaNinja into CallPilotAI so the data can be analysed and reconciled: addresses (companies AND private persons, the same list as app.abaninja.ch/addresses/list), master data (products, product groups, time-tracking employees), documents (quotes and invoices) and their positions. AbaNinja stays the leading source — nothing is ever written back. Positions are fetched one document at a time because AbaNinja's list endpoints do not return them, so a single call fetches at most max_positions documents and reports how many are still outstanding. The job is done when offen is 0, not when the call returns. Run it again to continue.

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

Input Schema

NameRequiredDescriptionDefault
scopeNoDefault 'all': addresses, master data (products, product groups, employees), documents, then one batch of positions.
max_positionsNoHow many documents to fetch positions for in this call (default 60, max 300). Each one is a separate API request.
positions_typeNoRestrict the position batch to one document type — quotes first is usually what you want.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and openWorldHint=true; the description's useful addition is scoping the writes to the local side only and explaining the batched, per-document fetch. It leaves one real gap: with destructiveHint=true, an agent cannot tell whether local CallPilotAI records that vanished from AbaNinja get deleted, which matters for a mirror job.

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?

Front-loads the what and the direction, then moves to the batching constraint and the completion criterion in a logical progression. Every clause carries information; the app.abaninja.ch/addresses/list reference concretely pins down which addresses are meant.

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?

With no output schema, the description still tells the agent what to look for on return (the outstanding `offen` count) and that repeated calls are required. For a destructive, open-world sync it stops short of documenting auth/credential prerequisites and deletion behavior for locally mirrored records.

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 100%, so the schema already defines scope, max_positions and positions_type, and the description largely restates them. It adds modest rationale — that positions cost one API request per document because list endpoints omit them, so a call caps at max_positions and reports the outstanding remainder — which is genuine meaning beyond the enum values.

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 ("Mirror") and both resources (AbaNinja → CallPilotAI), then enumerates exactly what is covered: addresses, master data, documents and positions. The one-way direction ("AbaNinja stays the leading source — nothing is ever written back") separates it from the create_/update_abaninja_* siblings and from sync_offer_templates_from_abaninja.

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?

Gives real operational guidance: the job isn't finished when the call returns, "the job is done when `offen` is 0", and "Run it again to continue" — this tells an agent to loop rather than assume success. It does not explicitly say when to prefer this over the AbaNinja list_* read tools or the other sync_* tools, but the coverage areas make the boundary reasonably clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.