Skip to main content
Glama

Get Opportunity

get-opportunity-tool
Read-onlyIdempotent

Get a single opportunity by ID with full details and relationships.

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": {
      "id": "<id>"
    },
    "name": "get-opportunity-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe opportunity ID to retrieve.
includeNoRelated records to expand in response. To-many relationships return at most 25 records with truncation metadata.

Output Schema

NameRequiredDescriptionDefault
dataYes
relationship_metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include / items
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and closed-world scope, so the safety profile is fully covered without the description. The description adds only "full details and relationships," which hints at payload breadth but doesn't disclose error behavior, missing-record handling, or expansion costs beyond what the schema's truncation note provides.

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?

A single tight sentence with the identifying key and payload scope front-loaded. There is no redundant or filler wording to remove.

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 an output schema present and rich annotations, the description doesn't need to explain return values. It is nearly complete for a simple two-parameter read tool; only the vagueness of "full details and relationships" versus the specific `include` expansion options leaves a small gap.

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 description coverage is 100%, so both `id` and `include` are already documented, including the 25-record truncation limit for to-many relationships. The description adds no extra meaning about what "relationships" expansion includes or which related record types are valid.

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 ("Get a single opportunity by ID") plus the payload scope ("full details and relationships"), which separates it from list/aggregate siblings by the word "single". It doesn't explicitly name an alternative tool, so it stops short of full sibling differentiation.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no prerequisites such as needing an ID from a list call first. The only implicit signal is the required "id" parameter, which the schema already conveys.

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.