Skip to main content
Glama

Sincronizar la cuenta del SII

perfil_sincronizar
Idempotent

Syncs a taxpayer's SII tax profile and authorized companies, replacing manual entries with SII-reported active data to ensure accurate F29 deadlines and representation.

Instructions

Trae del SII el perfil tributario (si está autorizado a declarar el F29 hasta el día 20, régimen y segmento) y las empresas que el contribuyente puede consultar, y reemplaza representa del perfil por las empresas activas que informa el SII (lo que el SII reporta sobrescribe lo que se haya anotado a mano). Solo lee el SII; de las empresas autorizadas guarda RUT, razón social (que puede ser el nombre de una persona), privilegios y fecha de desautorización, y no guarda correos, teléfonos ni direcciones. Los plazos del F29 usan el día 20 solo si el SII lo autoriza (si no, el 12): sincroniza la cuenta antes de revisar plazos. Si no hay sesión, la respuesta indica cómo conectar la cuenta en la página «Abrir mi-sii-mcp.cmd»; nunca pidas la clave en el chat.

Input Schema

NameRequiredDescriptionDefault
rutYesRUT del contribuyente, por ejemplo 22.222.222-2

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that SII-reported companies overwrite manually entered `representa` data, that only RUT, razón social, privileges and deauthorization date are stored, and that emails/phones/addresses are deliberately not stored. It also covers auth behavior and the read-only nature of the upstream SII call, which reconciles with readOnlyHint=false (the write happens locally) and idempotentHint=true.

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?

The core behavior (what is fetched and what is replaced) is front-loaded in the first sentence, and each following clause carries distinct behavioral information. It is dense and slightly run-on, with the F29 day-20/day-12 rule sitting a bit tangentially, but no sentence is wasted.

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 conveys what gets persisted, what gets overwritten, and what the no-session response looks like. It does not describe the success response shape, which is the only notable gap for a sync tool of this complexity.

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?

There is only one parameter and the schema already documents it at 100% coverage with an example format (22.222.222-2). The description adds nothing about the RUT beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource: it pulls the tax profile from SII (F29 authorization, régimen, segmento) plus the list of companies the taxpayer may query, and replaces the `representa` field. This is far more specific than the title, but it never names its siblings (perfiles_listar, renta_sincronizar, sincronizar), leaving the agent to infer when this differs from the other sync tools.

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 an explicit ordering rule — 'sincroniza la cuenta antes de revisar plazos' — and explains the fallback path when there is no session (the response points to the «Abrir mi-sii-mcp.cmd» page, never ask for the password in chat). It does not state when to use a sibling instead, so a 4 rather than a 5.

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