Skip to main content
Glama

État d’une demande

etat_demande
Read-only

Pour l’utilisateur connecté à son compte Tchin, marchand ou particulier (connexion demandée la première fois). Dit si une demande préparée (envoyer_argent, retirer_mobile_money…) a été confirmée et faite, refusée, a échoué ou attend encore. Ne dites jamais à l’utilisateur que c’est fait avant que ceci réponde « fait ».

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": {
      "demande": "<demande>"
    },
    "name": "etat_demande"
  }
}

Input Schema

NameRequiredDescriptionDefault
demandeYesLa référence rendue (D123).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the read-only, non-destructive, closed-world profile, and the description adds real context on top: the authentication precondition (first-time account connection, merchant or individual) and the full enumeration of possible outcomes (confirmed, refused, failed, still pending). It also discloses a critical usage constraint about not declaring success prematurely, which is behavior no annotation conveys.

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?

Three sentences, front-loaded with the authentication precondition, then the outcome enumeration, then the safety rule. Every sentence carries information an agent needs and nothing is repeated from the schema or annotations.

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?

No output schema exists, so the description's enumeration of the four possible states does the work of explaining return values, and the auth precondition is covered. It omits edge cases such as an unknown or expired reference and whether polling is expected for a pending state.

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?

With schema coverage at 100% and only one parameter, the schema already documents 'demande' as the reference (D123). The description adds only that the reference belongs to a 'demande préparée', which is marginal beyond the structured fields, 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 specific verb and resource: it tells whether a previously prepared request (envoyer_argent, retirer_mobile_money…) was confirmed/refused/failed/pending. The mention of the upstream tools that create a demande clearly separates it from the action siblings, though it never contrasts itself with the similarly named etat_paiement or tchin_crypto_etat.

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 clear context for when to call it — after a request has been prepared, to learn its outcome — plus an explicit behavioral rule ('never tell the user it's done before this responds "fait"'). It stops short of naming exclusions or which status tool to use for other object types.

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