Skip to main content
Glama

Patch MCP

get_phone_number

Read-onlyIdempotent

Read one owned number by number_id; omit it to inspect the default outbound number. Accepts calls:read or numbers:read. Number-management settings, revision, recovery deadline and workspace_revision require numbers:read. Does not place a call or expose agent instructions or voices.

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

Input Schema

NameRequiredDescriptionDefault
number_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "caller_id_status": {
      -        "enum": [
      -          "verified",
      -          "unverified"
      -        ],
      -        "type": "string"
      -      },
      -      "inbound_configured": {
      -        "type": "boolean"
      -      },
      -      "inbound_enabled": {
      -        "type": "boolean"
      -      },
      -      "is_default": {
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "enum": [
      -          "caller",
      -          "owned"
      -        ],
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      },
      -      "number_id": {
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "operation_id": {
      -        "type": "string"
      -      },
      -      "outbound_configured": {
      -        "type": "boolean"
      -      },
      -      "outbound_enabled": {
      -        "type": "boolean"
      -      },
      -      "phone_number": {
      -        "type": "string"
      -      },
      -      "settings": {
      -        "additionalProperties": false,
      -        "description": "Number-management settings, included only with numbers:read permission.",
      -        "properties": {
      -          "country": {
      -            "type": "string"
      -          },
      -          "release_at": {
      -            "anyOf": [
      -              {
      -                "format": "date-time",
      -                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "retained": {
      -            "type": "boolean"
      -          },
      -          "revision": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "country",
      -          "revision",
      -          "retained",
      -          "release_at"
      -        ],
      -        "type": "object"
      -      },
      -      "state": {
      -        "enum": [
      -          "provisioning",
      -          "requirements",
      -          "active",
      -          "suspended",
      -          "release_pending",
      -          "released",
      -          "failed"
      -        ],
      -        "type": "string"
      -      },
      -      "workspace_revision": {
      -        "description": "Included only with numbers:read; use when changing the default number.",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "number_id",
      -      "phone_number",
      -      "label",
      -      "kind",
      -      "state",
      -      "caller_id_status",
      -      "inbound_enabled",
      -      "outbound_enabled",
      -      "inbound_configured",
      -      "outbound_configured",
      -      "is_default"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "message": {
      -        "type": "string"
      -      },
      -      "next_action": {
      -        "type": "string"
      -      },
      -      "operation_id": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation_id",
      -      "status"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "caller_id_status": {
      +        "enum": [
      +          "verified",
      +          "unverified"
      +        ],
      +        "type": "string"
      +      },
      +      "inbound_configured": {
      +        "type": "boolean"
      +      },
      +      "inbound_enabled": {
      +        "type": "boolean"
      +      },
      +      "is_default": {
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "enum": [
      +          "caller",
      +          "owned"
      +        ],
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "number_id": {
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "operation_id": {
      +        "type": "string"
      +      },
      +      "outbound_configured": {
      +        "type": "boolean"
      +      },
      +      "outbound_enabled": {
      +        "type": "boolean"
      +      },
      +      "phone_number": {
      +        "type": "string"
      +      },
      +      "settings": {
      +        "additionalProperties": false,
      +        "description": "Number-management settings, included only with numbers:read permission.",
      +        "properties": {
      +          "country": {
      +            "type": "string"
      +          },
      +          "release_at": {
      +            "anyOf": [
      +              {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "retained": {
      +            "type": "boolean"
      +          },
      +          "revision": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "voice_system": {
      +            "description": "cascade, or full_duplex (GPT Live with Patch's custom voices). Change it with update_phone_number.",
      +            "enum": [
      +              "cascade",
      +              "full_duplex"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "country",
      +          "revision",
      +          "retained",
      +          "voice_system",
      +          "release_at"
      +        ],
      +        "type": "object"
      +      },
      +      "state": {
      +        "enum": [
      +          "provisioning",
      +          "requirements",
      +          "active",
      +          "suspended",
      +          "release_pending",
      +          "released",
      +          "failed"
      +        ],
      +        "type": "string"
      +      },
      +      "workspace_revision": {
      +        "description": "Included only with numbers:read; use when changing the default number.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "number_id",
      +      "phone_number",
      +      "label",
      +      "kind",
      +      "state",
      +      "caller_id_status",
      +      "inbound_enabled",
      +      "outbound_enabled",
      +      "inbound_configured",
      +      "outbound_configured",
      +      "is_default"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "message": {
      +        "type": "string"
      +      },
      +      "next_action": {
      +        "type": "string"
      +      },
      +      "operation_id": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation_id",
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / number_id
      Added value: +{
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "caller_id_status": {
      -        "description": "Caller ID verification state.",
      -        "enum": [
      -          "verified",
      -          "unverified"
      -        ],
      -        "type": "string"
      -      },
      -      "phone_number": {
      -        "description": "Authenticated account caller ID in E.164 format.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "phone_number",
      -      "caller_id_status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "error": {
      -        "description": "Machine-readable failure code.",
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Explanation or recovery guidance.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "next_action": {
      -        "type": "string"
      -      },
      -      "operation_id": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation_id",
      -      "status"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "caller_id_status": {
      +        "enum": [
      +          "verified",
      +          "unverified"
      +        ],
      +        "type": "string"
      +      },
      +      "inbound_configured": {
      +        "type": "boolean"
      +      },
      +      "inbound_enabled": {
      +        "type": "boolean"
      +      },
      +      "is_default": {
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "enum": [
      +          "caller",
      +          "owned"
      +        ],
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "number_id": {
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "operation_id": {
      +        "type": "string"
      +      },
      +      "outbound_configured": {
      +        "type": "boolean"
      +      },
      +      "outbound_enabled": {
      +        "type": "boolean"
      +      },
      +      "phone_number": {
      +        "type": "string"
      +      },
      +      "settings": {
      +        "additionalProperties": false,
      +        "description": "Number-management settings, included only with numbers:read permission.",
      +        "properties": {
      +          "country": {
      +            "type": "string"
      +          },
      +          "release_at": {
      +            "anyOf": [
      +              {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "retained": {
      +            "type": "boolean"
      +          },
      +          "revision": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "country",
      +          "revision",
      +          "retained",
      +          "release_at"
      +        ],
      +        "type": "object"
      +      },
      +      "state": {
      +        "enum": [
      +          "provisioning",
      +          "requirements",
      +          "active",
      +          "suspended",
      +          "release_pending",
      +          "released",
      +          "failed"
      +        ],
      +        "type": "string"
      +      },
      +      "workspace_revision": {
      +        "description": "Included only with numbers:read; use when changing the default number.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "number_id",
      +      "phone_number",
      +      "label",
      +      "kind",
      +      "state",
      +      "caller_id_status",
      +      "inbound_enabled",
      +      "outbound_enabled",
      +      "inbound_configured",
      +      "outbound_configured",
      +      "is_default"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "message": {
      +        "type": "string"
      +      },
      +      "next_action": {
      +        "type": "string"
      +      },
      +      "operation_id": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation_id",
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / description
      Removed value: -"Successful result or a machine-readable tool error."
  3. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "caller_id_status": {
      -        "description": "Caller ID verification state.",
      -        "enum": [
      -          "verified",
      -          "unverified"
      -        ],
      -        "type": "string"
      -      },
      -      "phone_number": {
      -        "description": "Authenticated account caller ID in E.164 format.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "phone_number",
      -      "caller_id_status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "error": {
      -        "description": "Machine-readable failure code.",
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Explanation or recovery guidance.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "caller_id_status": {
      +        "description": "Caller ID verification state.",
      +        "enum": [
      +          "verified",
      +          "unverified"
      +        ],
      +        "type": "string"
      +      },
      +      "phone_number": {
      +        "description": "Authenticated account caller ID in E.164 format.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "phone_number",
      +      "caller_id_status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "error": {
      +        "description": "Machine-readable failure code.",
      +        "type": "string"
      +      },
      +      "message": {
      +        "description": "Explanation or recovery guidance.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "next_action": {
      +        "type": "string"
      +      },
      +      "operation_id": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation_id",
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "caller_id_status": {
      +          "description": "Caller ID verification state.",
      +          "enum": [
      +            "verified",
      +            "unverified"
      +          ],
      +          "type": "string"
      +        },
      +        "phone_number": {
      +          "description": "Authenticated account caller ID in E.164 format.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "phone_number",
      +        "caller_id_status"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "error": {
      +          "description": "Machine-readable failure code.",
      +          "type": "string"
      +        },
      +        "message": {
      +          "description": "Explanation or recovery guidance.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Successful result or a machine-readable tool error.",
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses permission requirements (calls:read or numbers:read) and which fields require numbers:read. It also explicitly rules out side effects like placing a call or exposing agent instructions/voices, which is useful behavioral context.

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?

The description is compact and front-loaded: the main read behavior comes first, followed by permission details and non-behavior clarifications. Every sentence adds useful information without repetition.

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 simple read-only tool with one optional parameter, annotations, and an output schema, the description covers the important selection, authorization, and scope details. An agent has enough information to decide when to call it and how to omit or provide number_id.

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 description coverage is 0%, so the description carries the burden for number_id. It explains the key semantics: provide number_id to read one number, or omit it to inspect the default outbound number. It does not explain the identifier format, but it covers the parameter's primary meaning.

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?

The description states a specific verb and resource: "Read one owned number by number_id." It also clarifies the default-number behavior when number_id is omitted, which distinguishes this single-number read from list/search siblings.

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?

It gives clear usage context: pass number_id to read a specific owned number, or omit it to inspect the default outbound number. It does not explicitly name alternative tools such as list_phone_numbers, but the single-number scoping makes the intended use clear.

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