Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

companies_toggle_sync

Toggle ANAF SPV / e-Factura synchronization on or off for a specific company. Use it to enable or disable sync for a company; enabling requires a valid ANAF OAuth token.

Instructions

Toggle ANAF SPV / e-Factura synchronization on or off for a specific company. Calls POST /api/v1/companies/{uuid}/toggle-sync — flips the company's syncEnabled boolean. Requires COMPANY_EDIT permission. Enabling fails with 422 (messageKey ERR_SYNC_ENABLE_NO_TOKEN) when the company has no valid ANAF OAuth token; connect via anaf_create_token_link first. Returns { syncEnabled, message }. To enable on a fresh company, the recipe is: companies_list → anaf_create_token_link (open the URL, complete OAuth) → anaf_validate_cif → companies_toggle_sync.

Input Schema

NameRequiredDescriptionDefault
companyIdYesCompany UUID. Use companies_list to find available UUIDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the generic safety profile (not read-only, not idempotent, not destructive); the description adds the permission required (COMPANY_EDIT), the failure mode with the specific messageKey, and the return shape { syncEnabled, message }. This is context the agent cannot get from structured fields.

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

Conciseness4/5

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

Front-loaded with the action, then prerequisites, error behavior, and return shape — every sentence carries operational value. The closing recipe slightly repeats the earlier anaf_create_token_link mention, a minor redundancy that keeps it just short of a 5.

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?

For a single-parameter mutation with no output schema, the description covers everything an agent needs: permission requirement, prerequisite token state, the specific error on failure, the returned fields, and the multi-step onboarding path. Nothing material is left to inference.

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% and the single companyId parameter is fully documented in the schema, including how to find the UUID via companies_list. The description adds no syntax or format detail beyond that, so the baseline 3 applies.

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 and resource ('Toggle ANAF SPV / e-Factura synchronization on or off for a specific company') and names the exact endpoint and boolean flipped (syncEnabled). An agent can distinguish this from siblings like anaf_sync_trigger or anaf_sync_status without opening any schema.

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 names the prerequisite (valid ANAF OAuth token, otherwise 422 ERR_SYNC_ENABLE_NO_TOKEN) and the alternative to run first (anaf_create_token_link). It even gives the full ordering recipe for a fresh company: companies_list → anaf_create_token_link → anaf_validate_cif → companies_toggle_sync.

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

Deploy Server

Other Tools