Skip to main content
Glama

Log shared portion

log_shared_portion

Record grams of a batch eaten by someone else. It lowers the batch's grams left and is not added to the user's food log.

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": {
      "batch": "<batch>",
      "grams": "<grams>"
    },
    "name": "log_shared_portion"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNoWho ate it, if the user says
dateNoCalendar date YYYY-MM-DD in the user's timezone
batchYesThe batch's id or name
gramsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent mutation; the description adds the crucial consequence that the batch's remaining grams are decremented and nothing is written to the user's food log. That is real value beyond the annotations. It does not say what happens if the requested grams exceed what remains, which is the main failure mode for a decrementing mutation.

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?

Two short sentences with no filler; the side effect and the exclusion are front-loaded. Slightly terse for a mutation tool, but nothing 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?

For a four-parameter mutation with no output schema, the definition covers the essential surprise (batch balance changes, user log unaffected). It omits edge-case behavior on over-consumption and any indication of what is returned, which keeps it from being fully complete.

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 coverage is 75%, with descriptions already present for who, date, and batch, and grams being self-evident from its name and exclusiveMinimum constraint. The description clarifies that grams refer to a batch quantity eaten by another person, but adds no format, range, or resolution guidance beyond the schema. Baseline 3 applies when the schema carries most of the load.

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 gives a concrete verb and resource ("Record grams of a batch eaten by someone else") and immediately separates this tool from the ordinary food-logging path by stating the entry is not added to the user's food log. An agent can distinguish it from log_food 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?

The trigger condition is clear: this is for portions of a batch consumed by someone other than the user, and the closing clause implicitly contrasts it with the normal food-log path. It stops short of explicitly naming an alternative tool or stating exclusions (e.g. what to do when the user themselves eats from a batch), so it is strong but not fully routing.

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