Skip to content

get_type

Look up one GraphQL type in full.

No authentication

Endpoint

endpoint
https://go.sessions.website/build/api/mcp

When to use it

  • After search_docs names a type you need the full shape of.

  • To check whether a field exists before writing a query against it.

Parameters

namestringrequired

Exact type name, e.g. Business.

schemastringrequired

Which GraphQL schema to read: "public" (go.sessions.website/api/graphql) or "business" (the staff/admin API).

One of: public, business

Returns

The type in full — its kind, description, fields with their own types and descriptions, input fields, enum values, and what references it.

Example

POST this to the endpoint above.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_type",
    "arguments": {
      "name": "CheckoutPreview",
      "schema": "public"
    }
  }
}
content
CheckoutPreview (OBJECT)
Fields:
- subtotal: Int!
- taxCents: Int!
- amountDueCents: Int!

What the agent is told

The description the model reads when deciding whether to call this. It is the only thing that decides whether the tool fires at the right moment, so it is worth knowing what it says.

get_type
Return full detail for one GraphQL type from the chosen schema: description, fields (with arguments and deprecation), input fields, enum values, union/interface members, and which types reference it.

See also