Skip to main content
Glama

get_recommendation

Retrieve the data-driven recommended next action or communication channel for a given entity and intent based on historical interactions. Call before deciding what to do.

Instructions

Ask the intelligent engine for the statistically best action to take next for a given entity and intent. Based on historical data, this tool returns the exact communication channel or action type most likely to succeed. Call this before deciding what to do.

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>",
      "intent": "<intent>"
    },
    "name": "get_recommendation"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentYes
agent_idNo
entity_idYes
lookback_daysNo
min_success_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description must carry the behavioral load, and it does disclose the statistical/historical basis and that the output is a single best action type. It says nothing about behavior when history is insufficient, whether results are cached, or any permission or rate-limit considerations.

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?

Three short sentences with the ordering instruction front-loaded and no structural waste. Some promotional phrasing ("intelligent engine", "exact", "statistically best") adds words without adding precision.

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

Completeness3/5

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

It is complete on the core contract — inputs of entity/intent and the shape of the answer — which matters given there is no output schema. However, with five undocumented parameters and no annotations, an agent still lacks guidance on tuning the statistical confidence (lookback_days, min_success_count) before calling.

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 coverage is 0% across five parameters, so the description must compensate, and it only names entity and intent in passing. The three optional parameters — agent_id, lookback_days, and min_success_count — are never mentioned, and neither is the expected format or granularity of "intent".

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 gives a specific verb and result: it returns the statistically best next action (channel/action type) for a given entity and intent, based on historical data. That is clear enough to separate it from get_entity and log_interaction, though the siblings are never named explicitly.

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?

"Call this *before* deciding what to do" gives an explicit sequencing instruction that tells the agent when in a workflow to reach for this tool. It stops short of stating when not to use it or naming an alternative tool for cases where a recommendation is unavailable.

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