Skip to main content
Glama

Noter des calories

dandori_log_calories

Noter des calories mangées (un appel par repas ou en-cas, avec son total), ou corriger un repas déjà noté avec id. Le bilan du jour se lit avec dandori_get_fitness. Plan Plus requis.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dandori_log_calories"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoID du repas à corriger (voir dandori_get_fitness) ; absent pour en noter un
dateNoJour (YYYY-MM-DD), aujourd'hui ou passé ; par défaut aujourd'hui
kcalNoTotal en kcal (obligatoire pour un nouveau repas)
labelNoLibellé court (ex. Déjeuner : riz, poisson)
descriptionNoLe détail de l'estimation, une ligne par aliment avec sa portion et ses kcal

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, closed world). The description adds value beyond them: the entitlement constraint 'Plan Plus requis' and the one-call-per-meal granularity, which explains the non-idempotent behavior (repeating a call without id creates another entry). It does not describe what the call returns, which is a remaining gap.

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 short sentences, zero filler, with the primary action front-loaded and the read alternative and entitlement constraint trailing in order of importance. Every clause carries distinct information.

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?

For a five-parameter logging tool with no output schema, the description covers the two modes, the granularity, the entitlement requirement, and where to read results. The one thing an agent might still want — whether the created entry's id is returned — is not addressed, though it can be recovered via dandori_get_fitness.

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 description coverage is 100%, so the schema already documents id, date, kcal, label and description thoroughly, including defaults and bounds. The description only reinforces the id-as-correction-flag meaning and that kcal is a per-meal total, which the schema already states ('Total en kcal (obligatoire pour un nouveau repas)'), so the added meaning is marginal.

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?

The description names a specific verb and resource ('Noter des calories mangées') and covers both operating modes: creating a new entry and correcting an existing one via id. It also names the sibling used for the read side ('Le bilan du jour se lit avec dandori_get_fitness'), so an agent can distinguish this write tool from the read tool without opening either schema.

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?

It gives concrete usage context ('un appel par repas ou en-cas, avec son total') and routes the agent to dandori_get_fitness for the day's summary instead of trying to read data here. It does not state exclusions or edge cases (e.g. what happens on a second call for the same meal without an id), so it falls just short of fully explicit when/when-not guidance.

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