Skip to main content
Glama

campaigns_typeahead

Fast name autocomplete for campaign pickers. Query ?q=<text>&limit=<n> (limit capped at 50). Returns [{sqid, name}, ...]. Use when building UIs or letting the user select a campaign without a full list fetch.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/typeahead/

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "campaigns_typeahead"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose that this is a GET read, that results are shaped as [{sqid, name}, ...], and that limit is capped at 50. It omits authentication or permission requirements and whether results are prefix-matched or fuzzy, which keeps it from a 5.

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 compact sentences plus a method line, with purpose front-loaded and the return shape in the middle. The 'Method: GET ...' line duplicates information already implied by the name and endpoint, but it is short and useful for call construction.

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

Completeness4/5

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

For a simple autocomplete tool with no output schema, the description supplies return shape, the limit cap, and the endpoint path, which is enough to call it correctly. Missing are the meaning of workspace_sqid, auth expectations, and whether empty results or errors have special handling.

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?

The input schema is empty, so the description must supply parameter meaning, and it documents the q text query and the limit cap of 50 as URL query parameters. That said, the fact that these parameters are not represented in the schema at all is a definition-quality gap an agent may trip over when constructing the call.

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 verb and resource: 'Fast name autocomplete for campaign pickers', and the method line (GET .../campaigns/typeahead/) confirms the resource precisely. It implicitly separates itself from a full-list tool via 'without a full list fetch', though no sibling is 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?

'Use when building UIs or letting the user select a campaign without a full list fetch' gives a clear triggering context and implicitly contrasts with listing all campaigns. It stops short of naming the alternative tool or stating when this is a poor choice, but the selection context is unambiguous.

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.