Skip to main content
Glama

tksq_learn

Manage the learning buffer: list candidate patterns, promote or reject them, add manual substitutions, and view compression statistics.

Instructions

Manage the learning buffer. List candidate patterns discovered from usage, promote them to active substitutions, reject false positives, or add manual patterns. Use 'stats' action to see compression statistics.

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": {
      "action": "<action>"
    },
    "name": "tksq_learn"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction: list=show candidates, promote=activate a candidate, reject=remove candidate, add=manually add a pattern, reset=clear all learned data, stats=show statistics
phraseNoPhrase to promote/reject/add
replacementNoReplacement for promote/add action

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses that promote 'activates' a candidate and reject removes false positives, but it never mentions the 'reset' action that clears all learned data — a destructive, irreversible operation — nor does it state permission requirements or what happens to active substitutions when a pattern is rejected.

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 resource and its operations. The trailing stats sentence is somewhat redundant with the schema enum, but overall there is little wasted text.

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?

For a multi-action tool with no annotations and no output schema, the description covers the common actions but omits the destructive 'reset' action and gives no behavioral detail on safety or side effects. It is adequate for happy-path use but leaves an agent under-informed about risky invocations.

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 description coverage is 100%, so the schema already documents action, phrase, and replacement. The description adds a small amount of meaning by explaining that promote results in 'active substitutions' and that reject targets 'false positives,' but it does not clarify the phrase/replacement pairing or which actions require which parameters.

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 resource (the learning buffer) and enumerates concrete operations: list candidates, promote to active substitutions, reject false positives, add manual patterns. An agent can tell what the tool does without opening the schema. It does not explicitly contrast itself with sibling tools, but the operation set is distinctive enough to stand alone.

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 only explicit usage pointer is 'Use stats action to see compression statistics,' and even that largely restates the schema's enum documentation. There is no guidance on when to promote vs. add, when to reject, or when the learning buffer should be inspected at all, leaving the workflow implicit.

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