Skip to main content
Glama

Inspect endpoint

inspect
Read-only

Get one endpoint's execution contract: provider-native input schema, exact price with every charge clause, current endpoint_version, run mode and timeout. Always inspect before the first run of an endpoint, and pass the endpoint_version you saw to run. Selecting an endpoint_version does not lock Price; new Runs use the current Price at admission. Pass the task_id from your search so this inspection is recorded against the same piece of work. Docs: https://glasser.ai/docs/api-reference/endpoints/inspect

Input Schema

NameRequiredDescriptionDefault
task_idNo
endpointYes
providerYes
endpoint_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / endpoint_version / anyOf
      Previous value: -[
      -  {
      -    "description": "Select a supported Endpoint version, or omit for the default. Returns the current Price for that version; selecting a version does not lock its Price.",
      -    "exclusiveMinimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Select a supported Endpoint version, including an older one, or omit for the default. Unavailable or retired versions return 409.",
      +    "exclusiveMinimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / task_id / anyOf
      Previous value: -[
      -  {
      -    "description": "The task this call belongs to. Omit on the first search of a piece of work and one is minted and returned; pass it back on every later search, inspect and run so they are recorded as one task. Any stable string is accepted.",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The task this inspection belongs to, from a catalog search response. Any stable string is accepted.",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / task_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "The task this call belongs to. Omit on the first search of a piece of work and one is minted and returned; pass it back on every later search, inspect and run so they are recorded as one task. Any stable string is accepted.",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds genuinely non-obvious behavior: selecting a version does not lock Price, and new Runs are admitted at the current Price. It omits auth requirements and any rate-limit or result-caching behavior, but the pricing/version decoupling is valuable context beyond structured data.

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 what the tool returns, then workflow guidance, then the docs link. Every sentence carries information, though it is fairly dense and the pricing caveat could be tightened slightly.

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?

With no output schema, the description still tells the agent what the response contains (schema, price clauses, endpoint_version, run mode, timeout) and how to use it downstream. Combined with the read-only annotations, an agent has everything needed to call this correctly.

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 0%, so the description must carry parameter meaning. It explains the workflow role of task_id (link the inspection to the same piece of work) and endpoint_version (what to pass on to run), but provider and endpoint receive no clarification beyond their regex patterns, leaving half the parameters unexplained.

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?

States a specific verb ('Get') and resource ('one endpoint's execution contract') and enumerates exactly what comes back: input schema, price with charge clauses, endpoint_version, run mode and timeout. It is clearly distinguishable from siblings like run, search, and runs_get without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition ('Always inspect before the first run of an endpoint'), tells the agent what to do with the result ('pass the endpoint_version you saw to run'), and explains how to correlate with the search step via task_id. When-to-use and the handoff to run are both spelled out.

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.