Skip to main content
Glama

list_surveys

Read-onlyIdempotent

List surveys — each with its id, title, status (live/draft/closed) and the team it lives in. With no teamId this lists the surveys across ALL the user's teams; pass teamId to list just one. Call this whenever the user refers to a survey by name or description rather than giving its id directly (e.g. "add a question to my Rolls Royce survey") — match their description against the titles returned here to find the right id, then use that id with the other tools.

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": "list_surveys"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamIdNoWhich team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams.

Output Schema

NameRequiredDescriptionDefault
totalYesTotal surveys in the workspace (may exceed surveys.length if the listing was truncated)
surveysYesThe surveys shown, capped at 100
truncatedYesTrue if total exceeds surveys.length

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds value by explaining the team-scoping behavior (no teamId → surveys across ALL teams; teamId → one team) and by stating how results are meant to be consumed for id resolution. It says nothing about result volume, pagination, or truncation for large accounts, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: purpose and return shape first, scoping rule second, when-to-use plus the id-resolution workflow last. The Rolls Royce example is the only elaboration and it earns its place by showing the describe-a-survey-to-find-an-id pattern.

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?

For a single-optional-parameter list tool with full annotation coverage and an output schema, the description covers purpose, scope default, return fields, and the downstream workflow. Nothing an agent needs in order to select and call this correctly is missing.

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 coverage is 100%, so baseline is 3, but the description adds meaning the schema does not cleanly give: omitting teamId widens the scope to ALL of the user's teams rather than narrowing it. That is a non-obvious default worth stating. Note the schema's own teamId text talks about surveyId/create_survey, so the description is arguably the clearer source of scoping semantics for this tool.

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 ('List surveys') and enumerates the returned fields (id, title, status live/draft/closed, owning team), which distinguishes it from per-survey siblings like get_survey_details. An agent can tell exactly what this returns without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger condition — call this whenever the user names a survey instead of supplying an id — plus a concrete example ('add a question to my Rolls Royce survey') and a follow-up workflow ('match their description against the titles returned here... then use that id with the other tools'). It implicitly carves out the case where the user already has an id.

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