Skip to main content
Glama
live-agent-bridge

live-agent-bridge

by huaidj

plugin_learn

Stores a plug-in parameter's meaning (role and note) locally across sessions and models for later inspection and role-based setting; also removes learned meanings.

Instructions

Remember what a plug-in parameter does (role and note), locally and across sessions/models. plugin_inspect and role-based plugin_set use it next time. action='forget' removes a learned meaning.

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": {
      "plugin": "<plugin>",
      "parameter": "<parameter>"
    },
    "name": "plugin_learn"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
roleNo
actionNolearn = store the meaning; forget = remove it (an inference only removes a pending guess, a user-confirmed meaning needs origin='user')learn
originNouser = the user said it (confirmed); inference = your guess (stays pending, never overrides user)inference
pluginYesPlug-in name as in plugin_inspect 'plugin_name', e.g. 'Vital'
parameterYes

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?

Adds real value beyond annotations by disclosing persistence scope ('locally and across sessions/models'), which nothing in the schema conveys, and by flagging that action='forget' removes stored meanings. There is a mild tension worth noting: annotations declare destructiveHint=false while the description advertises a removal path, though removing a small learned note is not a destructive-update in the usual sense. It does not say what happens on conflicting re-learns, which the schema only partially covers.

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, front-loaded with the core action, with the parenthetical '(role and note)' efficiently compressing the payload description. The only slight stumble is putting action='forget' in a trailing clause rather than alongside the primary action, but there is no filler.

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?

With 6 parameters, 50% schema coverage and no output schema, gaps remain: what happens if plugin or parameter names don't match anything (the description references plugin_inspect's 'plugin_name' convention only via the schema), what a successful learn returns, and how conflicts with previously stored meanings are resolved. Adequate for a small state-storing tool, but not fully self-sufficient.

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 50%; the schema already documents both the action and origin enums in detail (learn vs forget, user vs inference). The description adds only the pairing of role and note as the two payload fields, and gestures at forget semantics that the schema states more precisely. Baseline 3 is appropriate given the schema carries most of the semantics.

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?

States a specific verb+resource: 'Remember what a plug-in parameter does (role and note)', plus the inverse operation via action='forget'. It also situates itself relative to plugin_inspect and role-based plugin_set, making it clear this is the memory layer rather than the inspection/mutation layer. It stops short of a fully crisp one-line differentiator, but an agent can tell it apart from plugin_set without opening a schema.

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 description implies when to call it by naming downstream consumers ('plugin_inspect and role-based plugin_set use it next time'), which tells the agent this is where a discovered meaning is persisted. However, it gives no explicit trigger condition (e.g. 'call after discovering a parameter's role in plugin_inspect') and no when-not-to-use guidance; the forget path is mentioned only in passing.

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