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

mcp-rest-api-server

Get contact

get_contact
Read-onlyIdempotent

Fetches a single contact record by contact ID, using an ID returned by list_contacts to retrieve the matching contact details.

Instructions

Fetch one contact by id.

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": {
      "contactId": "<contactId>"
    },
    "name": "get_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
contactIdYesContact id returned by list_contacts.

Output Schema

NameRequiredDescriptionDefault
contactYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered elsewhere. The description adds no behavioral context of its own — nothing about what happens when the id is unknown (error vs. null), whether lookups are subject to access restrictions, or freshness of the data.

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?

One short, front-loaded sentence with zero filler and no redundancy. It is efficient for a single-parameter read tool, though the extreme brevity leaves the definition slightly thin rather than fully optimized.

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 one-parameter read tool with an output schema, full annotation coverage, and 100% schema coverage, the definition is technically sufficient to invoke correctly. It nonetheless leaves gaps an agent might care about, such as not-found behavior and the relationship to list_contacts, so it is adequate but minimal.

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 coverage is 100% and the single parameter is documented as 'Contact id returned by list_contacts', so the schema already carries the meaning. The description's 'by id' merely restates that the identifier is the key and adds no format or sourcing detail beyond the schema.

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?

'Fetch one contact by id' states a specific verb (fetch) and resource (contact) with a singular scope, which implicitly separates it from list_contacts. It is clear, but it never explicitly contrasts with the sibling list tool or explains what a 'contact' entails.

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 only implied: the agent can infer this is the tool to call when it already has a contact id. There is no explicit when-to-use statement, no mention of the list_contacts prerequisite (that only appears in the schema), and no guidance on when not to use it.

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