# Get Product Tool contract

`mcp_catalog.get_tool`

Read one Product Tool's exact input and success schemas, safety settings, execution bounds, access paths, and current tool-set memberships. Use an exact name returned by mcp_catalog.list_tools.

[Tool access guide](https://docs.levr.ai/mcp/resources/mcp_catalog.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "tool_name": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "tool_name"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "tool": {
          "additionalProperties": false,
          "properties": {
            "access_paths": {
              "items": {
                "enum": [
                  "external_mcp",
                  "internal_agent"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "agent_tool_sets": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "version": {
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "name",
                  "version"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "approval_required": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "idempotent": {
              "type": "boolean"
            },
            "maximum_execution_seconds": {
              "minimum": 1,
              "type": "integer"
            },
            "maximum_result_bytes": {
              "minimum": 1,
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "open_world": {
              "type": "boolean"
            },
            "operation": {
              "enum": [
                "read",
                "write"
              ],
              "type": "string"
            },
            "projections": {
              "additionalProperties": false,
              "properties": {
                "external_mcp": {
                  "anyOf": [
                    {
                      "description": "Exact JSON Schema document projected for this Product Tool.",
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Exact JSON Schema document projected for this Product Tool."
                },
                "internal_agent": {
                  "anyOf": [
                    {
                      "description": "Exact JSON Schema document projected for this Product Tool.",
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Exact JSON Schema document projected for this Product Tool."
                }
              },
              "required": [
                "external_mcp",
                "internal_agent"
              ],
              "type": "object"
            },
            "public_confirmation_required": {
              "type": "boolean"
            },
            "public_tool_sets": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "result_schema": {
              "description": "Exact JSON Schema document projected for this Product Tool.",
              "type": "object"
            },
            "safety_class": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "title",
            "description",
            "operation",
            "access_paths",
            "public_tool_sets",
            "agent_tool_sets",
            "safety_class",
            "approval_required",
            "public_confirmation_required",
            "idempotent",
            "open_world",
            "maximum_execution_seconds",
            "maximum_result_bytes",
            "projections",
            "result_schema"
          ],
          "type": "object"
        }
      },
      "required": [
        "tool"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
