Skip to main content
Glama

Log interaction

log_interaction

Append a generic interaction event to the answers log. Event types: a lookup, a word discussed with the AI, or a word read in context.

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": {
      "type": "<type>",
      "word": "<word>"
    },
    "name": "log_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage tag of the word: base ISO with an optional region (en, en-us, pt-br). Matching is on the base code, so any regional variant matches. Omit it and the user's own primary learning language is used.
typeYes
wordYes
metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lang / description
      Previous value: -"Language tag of the word: base ISO with an optional region (en, en-us, pt-br). Scoped on the base, so the variant the session instructions ask you to send always matches. Omit it and the user's own primary learning language is used."New value: +"Language tag of the word: base ISO with an optional region (en, en-us, pt-br). Matching is on the base code, so any regional variant matches. Omit it and the user's own primary learning language is used."
  2. Changed1 schema field changed
    • addedInput schema / properties / lang / description
      Added value: +"Language tag of the word: base ISO with an optional region (en, en-us, pt-br). Scoped on the base, so the variant the session instructions ask you to send always matches. Omit it and the user's own primary learning language is used."
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so "Append" is consistent and the safety profile is known. The description adds the destination ("the answers log"), which is genuine context, but omits any behavior around duplicates, ordering, or what happens to the metadata payload. No contradiction with the annotations.

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 sentences, front-loaded with the write action and followed by the type enumeration; nothing is redundant. The word "generic" is slightly vague but does not cost much space.

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 append-only logging tool with clear annotations, the description covers what is written and where, which is the core need. The unannotated nested `metadata` parameter and the absence of any statement about the response are the remaining shortfalls, but neither prevents correct invocation.

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 only 25%, so the description must compensate, and it does partially by glossing the three enum values of `type` in plain language. `word` is self-evident from the name, but the nested free-form `metadata` object is left completely unexplained in both schema and description, leaving a real gap.

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?

The description pairs a specific verb ("Append") with a specific resource ("interaction event to the answers log") and then enumerates the three event types, so an agent knows exactly what the tool writes. It does not differentiate itself from siblings like capture_word or mark_demonstrated, which are arguably adjacent write operations, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The event-type sentences indirectly tell the agent which situation maps to which type value (lookup, discussed with the AI, read in context), which is useful selection guidance. However, there is no explicit when-to-use versus when-not guidance and no named alternative for overlapping tasks such as capture_word or mark_struggled.

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.