Skip to main content
Glama

log_interaction

Record an entity action, outcome, and agent details to build behavioral profiles and support future ML recommendations.

Instructions

Chronicle a specific action taken on an entity to build its behavioral profile. Use this to explicitly tell the system what you did, which tool you used, and what happened. This behavioral payload forms the graph that drives future ML recommendations.

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": {
      "entity_id": "<entity_id>",
      "api": "<api>",
      "action_type": "<action_type>",
      "action": "<action>",
      "outcome": "<outcome>",
      "agent_id": "<agent_id>"
    },
    "name": "log_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYes
actionYes
intentNo
outcomeYes
agent_idYes
metadataNo
entity_idYes
action_typeYes
occurred_atNo
external_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does add real value by disclosing the downstream effect: the payload becomes graph data that drives future ML recommendations, which tells an agent why accurate logging matters. It says nothing about authentication/agent identity requirements, idempotency or duplicate handling, whether the entity must pre-exist, or whether logging is reversible. That is a meaningful gap for a required-field mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action, so it is easy to scan. However, 'to build its behavioral profile' and 'forms the graph that drives future ML recommendations' restate the same downstream rationale, and 'Chronicle' is flowery where 'record' would be plainer.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A 10-parameter write tool with zero schema descriptions, no annotations, and no output schema needs the description to explain field meanings and mutation semantics; it explains neither. An agent could not determine from this text how to distinguish action from action_type or what metadata and external_ref are for.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters (6 required, one nested object, one enum), so the description must compensate and largely does not. It loosely maps to api ('which tool you used'), agent_id ('what you did'), and outcome ('what happened'), but leaves the most ambiguous pair — action_type versus action, both required bounded strings — completely undefined, along with intent, metadata, occurred_at, and external_ref.

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 states a specific action and resource: recording ('Chronicle') an action taken on an entity in order to build a behavioral profile. It also clarifies that the caller is the actor ('tell the system what you did'), which separates it from read-side siblings like get_entity or get_recommendation. It stops short of naming a sibling outright, so a 4 rather than 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?

'Use this to explicitly tell the system what you did, which tool you used, and what happened' gives an implied trigger (after performing an action) and hints at the payload content. There is no when-not guidance, no statement about whether the entity must already exist or be resolved via resolve_entity first, and no mention of how this relates to update_recommendation_outcome.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.