Skip to main content
Glama

Perpetuus CRM

Get Conversation

crm_get_conversation
Read-onlyIdempotent

Fetches conversation metadata by numeric chat conversationId, including its inbox/contact context when returned by the backend. Use it after listing conversations and before changing status or sending. Requires chat:read. A numeric ID is required—CRM contact/card documentIds are not accepted. Common errors are a stale conversation ID or team/portfolio access restrictions.

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": {
      "conversationId": "<conversationId>"
    },
    "name": "crm_get_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
conversationIdYesNumeric chat id (conversation, inbox, or message cursor).

Output Schema

NameRequiredDescriptionDefault
okYesAlways true on success; errors come with isError and no structuredContent.
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "data": {},
      +            "id": {
      +              "anyOf": [
      +                {
      +                  "type": [
      +                    "string",
      +                    "number"
      +                  ]
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Numeric chat conversation id."
      +            },
      +            "inbox_id": {
      +              "anyOf": [
      +                {
      +                  "$ref": "#/properties/data/anyOf/0/properties/id/anyOf/0"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "meta": {},
      +            "status": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "meta": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "organizationDocumentId": {
      +          "description": "Organization documentId resolved from the credential.",
      +          "type": "string"
      +        },
      +        "requestId": {
      +          "description": "Request id (x-request-id or generated by the MCP server).",
      +          "type": "string"
      +        },
      +        "source": {
      +          "const": "perpetuus-crm-mcp",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "requestId",
      +        "source"
      +      ],
      +      "type": "object"
      +    },
      +    "ok": {
      +      "const": true,
      +      "description": "Always true on success; errors come with isError and no structuredContent.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "data",
      +    "meta"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so the description sensibly spends its words elsewhere: the chat:read scope, the failure modes (stale conversation ID, team/portfolio access restrictions), and the caveat that inbox/contact context is only present 'when returned by the backend'. That backend-dependent variability is genuine behavioral disclosure an agent would not get from the annotations.

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?

Front-loaded with the action and the key identifier, then prerequisites, then failure modes — a sensible ordering with no filler sentences. 'A numeric ID is required' partly restates the schema's required field, but it functions as the setup for the documentId exclusion, so it still pays for itself.

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?

An output schema exists, so the description rightly omits return-value detail while flagging that some context may be absent. For a one-parameter read, auth scope, ID type constraint, and the two realistic error classes are all covered; only the absence of a named fallback tool leaves a small gap.

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; the description earns above that by disambiguating what the integer is not — 'CRM contact/card documentIds are not accepted' — which resolves the most likely confusion with the card and contact tools in this family.

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?

States a specific verb and resource: 'Fetches conversation metadata by numeric chat conversationId', and scopes the payload to inbox/contact context. It is clearly a single-conversation lookup rather than a list, which separates it from crm_list_conversation_messages and crm_get_conversation_unread_counts, though it never names a sibling 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 it after listing conversations and before changing status or sending' gives a concrete position in a workflow, and the prerequisite 'Requires chat:read' plus the documentId exclusion prevents a common misfire. It stops short of naming an alternative tool to use when the caller only has a CRM contact/card 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.