Skip to main content
Glama

ai_few_shot

Read-only

Few-shot example generator — Generate realistic, varied few-shot examples (input/output pairs) for prompting or evaluating an LLM on any task, including edge cases. With labels= the outputs are forced to your exact labels and balanced across them; near-duplicate inputs and off-label outputs are dropped offline. Returns the examples, label counts, balance flag, input length stats and a ready-to-paste prompt block. Optional: labels= comma list, n= 2-12, format=, domain=. Nothing stored. Price: $0.006 USDC (Base, via x402).

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": {
      "task": "<task>"
    },
    "name": "ai_few_shot"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYese.g. Classify the sentiment of product reviews

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: deduplication and off-label filtering happen server-side, nothing is stored, and the response includes examples, label counts, a balance flag, length stats and a prompt block. Price ($0.006 USDC via x402) is also disclosed, which is valuable payment context. Minor gap: no note on latency or example length limits.

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?

Front-loaded with the core verb+resource, then constraints, then return payload, then payment. Sentence fragments ("Optional: labels= comma list, n= 2-12, format=, domain=.") keep it compact, though the density makes it slightly telegraphic to parse.

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

Completeness5/5

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

There is no output schema, and the description compensates by enumerating the return payload. Combined with storage, filtering, pricing and parameter constraints, an agent has everything needed to decide to call it and what to expect back.

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

Parameters4/5

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

Schema documents only `task` with an example, whereas the description documents optional controls (labels, n with the 2-12 range, format, domain) and their effects, which meaningfully extends what the schema conveys. The caveat is that these optional parameters do not appear in the supplied schema, creating an expectation the tool signature does not visibly support.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generate realistic, varied few-shot examples (input/output pairs)") plus the scope ("for prompting or evaluating an LLM on any task, including edge cases"). An agent can tell this apart from ordinary generators in the sibling list because it produces example sets rather than task output.

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?

It gives conditional guidance for one path ("With labels= the outputs are forced to your exact labels and balanced") and names two intended uses (prompting vs evaluating). It never states when to prefer this over alternatives such as a direct generation tool, so the guidance is implied rather than explicit.

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.

Resources