Skip to main content
Glama

Fetch (OpenAI Connectors)

fetch
Read-only

OpenAI ChatGPT Deep Research / Connectors fetch contract. Given an id returned by search (formatted as 'artist:', 'campaign:', or 'smartlink:'), returns the full record for citation.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
codeNo
dataNo
kindNo
fieldNo
statusYes
draftIdNo
messageNo
retryableNo
nextActionNo
failureStageNo
prerequisiteNo
screeningResultNo
retryAfterSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -{}New value: +false
    • removedOutput schema / properties / data / properties / id
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / data / properties / name
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / data / properties / publicUrl
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / data / properties / summary
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / kind / enum
      Added value: +[
      +  "validation",
      +  "business",
      +  "platform",
      +  "unknown"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / code / enum
      Previous value: -[
      -  "ACCOUNT_READ_ONLY",
      -  "INVALID_SPOTIFY_SOURCE",
      -  "CAPABILITY_REQUIRED",
      -  "INSUFFICIENT_SCOPE",
      -  "STATE_CONFLICT",
      -  "QUOTE_CHANGED",
      -  "RATE_LIMITED",
      -  "OUTPUT_INVALID",
      -  "UNKNOWN_EFFECT"
      -]New value: +[
      +  "ACCOUNT_READ_ONLY",
      +  "INVALID_SPOTIFY_SOURCE",
      +  "CAPABILITY_REQUIRED",
      +  "INSUFFICIENT_SCOPE",
      +  "TENANT_ACCESS_DENIED",
      +  "STATE_CONFLICT",
      +  "QUOTE_CHANGED",
      +  "RATE_LIMITED",
      +  "OUTPUT_INVALID",
      +  "UNKNOWN_EFFECT"
      +]
  3. Changed3 schema fields changed
    • addedOutput schema / properties / draftId
      Added value: +{
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / failureStage
      Added value: +{
      +  "maxLength": 120,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / screeningResult
      Added value: +{
      +  "maxLength": 120,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  5. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedOutput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
  6. Changed6 schema fields changed
    • addedOutput schema / properties / code
      Added value: +{
      +  "enum": [
      +    "ACCOUNT_READ_ONLY",
      +    "INVALID_SPOTIFY_SOURCE",
      +    "CAPABILITY_REQUIRED",
      +    "INSUFFICIENT_SCOPE",
      +    "STATE_CONFLICT",
      +    "QUOTE_CHANGED",
      +    "RATE_LIMITED",
      +    "OUTPUT_INVALID",
      +    "UNKNOWN_EFFECT"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / field
      Added value: +{
      +  "maxLength": 120,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextAction
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "field": {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "kind": {
      +      "enum": [
      +        "provide_input",
      +        "read_status",
      +        "reconnect",
      +        "handoff"
      +      ],
      +      "type": "string"
      +    },
      +    "reason": {
      +      "maxLength": 240,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / prerequisite
      Added value: +{
      +  "maxLength": 240,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / retryAfterSeconds
      Added value: +{
      +  "maximum": 86400,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / retryable
      Added value: +{
      +  "type": "boolean"
      +}
  7. Changed6 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • addedOutput schema / properties / data / properties / id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / name
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / publicUrl
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / summary
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / kind / enum
      Removed value: -[
      -  "validation",
      -  "business",
      -  "platform",
      -  "unknown"
      -]
  8. Changed4 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -{}New value: +false
    • addedOutput schema / properties / data
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / kind
      Added value: +{
      +  "enum": [
      +    "validation",
      +    "business",
      +    "platform",
      +    "unknown"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
  9. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered without description help. The description adds the useful behavioral detail that the result is the 'full record' intended for citation, but says nothing about what happens with an unknown or malformed id. Given annotation coverage, a 3 reflects modest added value.

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?

Two sentences, front-loaded with the operation and then the id contract; nothing is redundant. The opening 'OpenAI ChatGPT Deep Research / Connectors fetch contract' framing is somewhat jargon-heavy preamble rather than information about the tool.

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?

For a single-parameter lookup with an output schema and full annotations, the description covers purpose, id provenance and id formats, which is nearly everything needed to invoke it. The only real omission is error behavior for a missing or misformatted id, which is minor here.

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 0%, so the lone `id` parameter is just an untyped 1-200 char string in the schema. The description compensates well by specifying the three accepted prefix formats and their provenance from `search`, which is exactly the missing meaning an agent needs to build a valid call.

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 gives a concrete verb-and-resource pairing ('returns the full record' for an id) and enumerates the record types handled ('artist:<uuid>', 'campaign:<uuid>', 'smartlink:<uuid>'). By stating the id comes from `search`, it also cleanly separates its role from that sibling: search locates, fetch expands.

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 states the triggering condition clearly: this is the follow-up to `search`, consuming an id that search produced, in order to get an expanded record for citation. It does not name an explicit when-not or an alternative retrieval path, so it falls short of full routing guidance.

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.