Skip to main content
Glama

Paypal Get Order

paypal_get_order
Read-onlyIdempotent

Get full details of a PayPal order by ID (e.g., "3JU84394D694620H"). Returns buyer info, items, amounts, and fulfillment status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
_sandboxNoUse sandbox environment (default: false)
order_idYesPayPal order ID
_clientIdYesPayPal app Client ID
_clientSecretYesPayPal app Client Secret

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoOrder ID
linksNo
payerNoPayer information
statusNoOrder status (e.g., CREATED, APPROVED, VOIDED, COMPLETED)
create_timeNoOrder creation timestamp
update_timeNoOrder last update timestamp
purchase_unitsNoItems and amounts in the order

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Full details of a PayPal order",
      +  "properties": {
      +    "create_time": {
      +      "description": "Order creation timestamp",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "Order ID",
      +      "type": "string"
      +    },
      +    "links": {
      +      "items": {
      +        "properties": {
      +          "href": {
      +            "description": "URL link",
      +            "type": "string"
      +          },
      +          "method": {
      +            "description": "HTTP method",
      +            "type": "string"
      +          },
      +          "rel": {
      +            "description": "Link relation (e.g., self, approve)",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "payer": {
      +      "description": "Payer information",
      +      "properties": {
      +        "address": {
      +          "properties": {
      +            "address_line_1": {
      +              "description": "Street address",
      +              "type": "string"
      +            },
      +            "admin_area_1": {
      +              "description": "State",
      +              "type": "string"
      +            },
      +            "admin_area_2": {
      +              "description": "City",
      +              "type": "string"
      +            },
      +            "country_code": {
      +              "description": "Country code",
      +              "type": "string"
      +            },
      +            "postal_code": {
      +              "description": "Postal code",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "email_address": {
      +          "description": "Payer email",
      +          "type": "string"
      +        },
      +        "name": {
      +          "properties": {
      +            "given_name": {
      +              "description": "First name",
      +              "type": "string"
      +            },
      +            "surname": {
      +              "description": "Last name",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "purchase_units": {
      +      "description": "Items and amounts in the order",
      +      "items": {
      +        "properties": {
      +          "amount": {
      +            "properties": {
      +              "breakdown": {
      +                "properties": {
      +                  "item_total": {
      +                    "properties": {
      +                      "currency_code": {
      +                        "type": "string"
      +                      },
      +                      "value": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "shipping": {
      +                    "properties": {
      +                      "currency_code": {
      +                        "type": "string"
      +                      },
      +                      "value": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "tax_total": {
      +                    "properties": {
      +                      "currency_code": {
      +                        "type": "string"
      +                      },
      +                      "value": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "currency_code": {
      +                "description": "Currency code",
      +                "type": "string"
      +              },
      +              "value": {
      +                "description": "Total amount",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "items": {
      +            "items": {
      +              "properties": {
      +                "name": {
      +                  "description": "Item name",
      +                  "type": "string"
      +                },
      +                "quantity": {
      +                  "description": "Item quantity",
      +                  "type": "string"
      +                },
      +                "unit_amount": {
      +                  "properties": {
      +                    "currency_code": {
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "reference_id": {
      +            "description": "Reference ID",
      +            "type": "string"
      +          },
      +          "shipping": {
      +            "properties": {
      +              "address": {
      +                "properties": {
      +                  "address_line_1": {
      +                    "type": "string"
      +                  },
      +                  "admin_area_1": {
      +                    "type": "string"
      +                  },
      +                  "admin_area_2": {
      +                    "type": "string"
      +                  },
      +                  "country_code": {
      +                    "type": "string"
      +                  },
      +                  "postal_code": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "Order status (e.g., CREATED, APPROVED, VOIDED, COMPLETED)",
      +      "type": "string"
      +    },
      +    "update_time": {
      +      "description": "Order last update timestamp",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_clientId": "your-paypal-client-id",
      +    "_clientSecret": "your-paypal-client-secret",
      +    "order_id": "3JU84394D694620H"
      +  }
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds value by specifying the return content (buyer info, items, amounts, fulfillment status), which goes beyond the annotations. No contradictions.

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 a single, clear sentence with no wasted words. It immediately communicates the tool's purpose and output.

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?

Given the tool's simplicity, high schema coverage, presence of an output schema, and annotations covering safety, the description is complete. It tells the agent what the tool does and what it returns.

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%—all four parameters have descriptions. The tool's description adds an example of an order_id but does not explain parameter semantics beyond the schema. Baseline 3 is appropriate.

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 uses a specific verb ('Get') and resource ('full details of a PayPal order by ID'), includes an example ID, and lists the returned data (buyer info, items, amounts, fulfillment status). It clearly distinguishes from sibling tools like paypal_get_invoice.

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?

The description states what the tool does but does not provide guidance on when to use it versus alternatives, nor any prerequisites or exclusions. For a read-only lookup tool, this is minimally adequate.

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.