Skip to main content
Glama

Cambiar el estado de notificaciones

marcar_notificaciones
Idempotent

Marca notificaciones como revisadas o como pendientes: por sus ids (los de listar_notificaciones, no los del bien; hasta 1.000) o todas las que cumplen unos filtros (hasta 5.000 por llamada; si quedan, repite la llamada). Úsala solo si el usuario lo pide. Por filtros, dile antes cuántas son (total o pendientes de listar_notificaciones con esos filtros) y que lo confirme. Pasar a pendiente borra la marca de apertura del email. Repetirla no cambia nada. No consume cuota.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "estado": "<estado>"
    },
    "name": "marcar_notificaciones"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoIds de las notificaciones. O esto o filtros.
estadoYes
filtrosNoLos filtros de listar_notificaciones (sin revision, orden, limit ni page: el estado pedido decide cuáles cambian). {} son todas las notificaciones de la cuenta.

Output Schema

NameRequiredDescriptionDefault
errorNoCódigo de error del API, si la llamada falla.
estadoNo
quedanNo
messageNo
_limitesNoCupos y rate limit restantes tras la llamada.
cambiadasNo
sin_cambioNo
no_encontradasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) by disclosing batch caps (1.000 ids, 5.000 by filters), the need to repeat calls when more remain, that 'pendiente' erases the email open mark (a side effect not implied by destructiveHint=false), idempotency on repeat, and zero quota consumption.

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?

Every sentence carries a constraint: caps, confirmation rule, side effect, idempotency, quota. It is front-loaded with the verb, but several sentences pack multiple clauses (caps + repeat + confirmation), which slightly hurts scannability.

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 mutation with a nested filter object and an existing output schema, the description covers all an agent needs: target selection, batch limits, confirmation workflow, irreversible side effect, and quota cost. Nothing material is left implicit.

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

Parameters4/5

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

Adds real meaning on top of 67% schema coverage: it pins down which id namespace applies (notificaciones, not bienes) and explains the nested filtros object as listar_notificaciones' filters minus revision/orden/limit/page, with {} meaning the whole account. The size limits reinforce the schema's maxItems, though it does not restate per-filter field meaning.

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?

Opens with a specific verb+resource ('Marca notificaciones') and immediately distinguishes the two operating modes: by ids (from listar_notificaciones, explicitly not 'los del bien') or by filters. An agent can tell exactly what changes and how targets are addressed without opening the 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?

Explicit gate: 'Úsala solo si el usuario lo pide', plus a mandatory precondition for filter mode (report the count first and get confirmation). It also names listar_notificaciones as the source of both the ids and the count, routing the agent to the right sibling before calling.

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.