Skip to main content
Glama
mcp-rest-api-server

mcp-rest-api-server

List contacts

list_contacts
Read-onlyIdempotent

Retrieve contacts with optional search by name, email, company, or role, and paginate results using cursor and limit.

Instructions

List contacts. Optional q matches name, email, company, or role. Pages use cursor and limit.

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_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoCase-insensitive search text.
limitNoPage size from 1 to 100. Defaults to 20.
cursorNoOpaque nextCursor from the previous page. Omit it to start at the first page.

Output Schema

NameRequiredDescriptionDefault
limitYes
hasMoreYes
contactsYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral detail beyond that: the q search spans four specific fields (name, email, company, role) rather than being a generic text match, and paging is cursor-based. It does not disclose ordering or result-set size behavior, which would be the next useful increment.

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 short sentences, front-loaded with the operation and its filter, then paging. Nothing is redundant with the schema in a wasteful way and there is no filler.

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?

With a full output schema and rich annotations, the description needn't explain return values, and it covers search scope plus pagination adequately. The remaining gap is ordering/default sort and what happens on an empty match, which an agent might want before paginating.

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 the baseline is 3, but the description earns an increment by expanding q's scope to name/email/company/role, which the schema only calls 'Case-insensitive search text'. The sentence about cursor and limit adds little beyond the already well-documented schema fields.

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?

Opens with a specific verb+resource ('List contacts') and immediately scopes the operation with the optional q filter and paging model. The verb 'list' implicitly separates it from the get_* siblings, but no sibling is named, so the differentiation is inferred rather than stated.

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?

Usage is implied: the q parameter signals this is the search/browse path, while get_contact would be the single-record path, but the description never states when to prefer one over the other. There is no mention of how to proceed when a search returns multiple or zero results, and no explicit exclusion.

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