Skip to main content
Glama

mark_news_read

Idempotent

Marque comme lus des signaux précis de la veille de l'utilisateur (page Actualités de l'app Insourcia).

Utiliser cet outil quand l'utilisateur indique avoir traité des signaux ("ok j'ai vu", "marque-les comme lus").

Fonctionnement :

  • Prend les "read_key" renvoyées par get_news, telles quelles ; leur format varie selon le type de signal et n'est pas reconstructible.

  • Idempotent : une clé déjà lue est ignorée (comptée dans already_read), sans erreur ni doublon.

  • Marquage cible uniquement : il n'existe volontairement pas de "tout marquer lu" via l'API, pour ne pas effacer par erreur la file de tri de l'utilisateur.

  • N'efface rien : la ligne reste visible dans l'app, elle passe simplement de "nouveau" à "lu".

  • Ne modifie pas la date de dernière visite de l'utilisateur sur la page Actualités.

Réponse : { marked_read, already_read, unread_remaining, url (page Actualités) }.

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": {
      "read_keys": "<read_keys>"
    },
    "name": "mark_news_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
read_keysYesClés "read_key" recopiées telles quelles depuis la réponse de get_news (leur format varie selon le type de signal). Max 500 par appel.

Output Schema

NameRequiredDescriptionDefault
urlYes
marked_readYes
already_readYes
unread_remainingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / read_keys / description
      Previous value: -"Cles \"read_key\" recopiees telles quelles depuis la reponse de get_news (leur format varie selon le type de signal). Max 500 par appel."New value: +"Clés \"read_key\" recopiées telles quelles depuis la réponse de get_news (leur format varie selon le type de signal). Max 500 par appel."
  2. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "read_keys",
      -  "llm_model"
      -]New value: +[
      +  "read_keys"
      +]
  3. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "read_keys"
      -]New value: +[
      +  "read_keys",
      +  "llm_model"
      +]
  4. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "read_keys",
      -  "context"
      -]New value: +[
      +  "read_keys"
      +]
  5. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "read_keys"
      -]New value: +[
      +  "read_keys",
      +  "context"
      +]
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description goes further by explaining how idempotency manifests (duplicate keys counted in already_read, no error, no duplicate), that nothing is erased and the row merely flips from "new" to "read", and that the last-visit timestamp is untouched. Those are non-obvious side-effect details no structured field conveys.

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?

Well front-loaded: purpose, then trigger, then behavior bullets. Almost every line earns its place, though the trailing "Réponse : {...}" line largely duplicates the existing output schema and "sans erreur ni doublon" slightly restates idempotency.

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 an output schema, the description covers the trigger, key provenance, idempotency, non-destructiveness, the absence of bulk marking, and untouched side effects. An agent has everything needed to invoke it correctly on the first attempt.

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?

Schema coverage is 100%, so a baseline of 3 is warranted, but the description adds real meaning: the read_key strings must be copied verbatim from get_news and are not reconstructible because their format varies per signal type. That directly steers how the agent must populate the array, beyond what the 64-char string schema says.

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 ("marque comme lus des signaux précis") and immediately scopes it to the user's news feed in the Insourcia app. It also implicitly separates the tool from the sibling get_news, which produces the keys this tool consumes, so an agent can pick between them without opening schemas.

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?

Gives an explicit trigger ("quand l'utilisateur indique avoir traité des signaux") with concrete user utterances, plus the operational prerequisite that keys must come from get_news. It also closes a likely false path by stating there is deliberately no "mark all as read" API, so the agent will not hunt for one.

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.

Resources