> ## Documentation Index
> Fetch the complete documentation index at: https://developers.datagrid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve tool

> Retrieves a specific tool by its identifier.



## OpenAPI

````yaml get /tools/{tool_name}
openapi: 3.0.3
info:
  version: 0.1.1
  title: Datagrid API
  description: Datagrid API
servers:
  - url: https://api.datagrid.com/v1
security:
  - BearerAuth: []
paths:
  /tools/{tool_name}:
    get:
      tags:
        - Tools
      summary: Retrieve tool
      description: Retrieves a specific tool by its identifier.
      operationId: Tools.retrieveTool
      parameters:
        - name: tool_name
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ToolName'
          description: The name of the tool to retrieve.
      responses:
        '200':
          description: Retrieved tool
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolDef'
        '429':
          description: >-
            Rate limit exceeded. The request has been throttled because the rate
            limit for this endpoint has been reached. Check the `Retry-After`
            response header and retry after the specified number of seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Datagrid from 'datagrid-ai';

            const client = new Datagrid({
              apiKey: process.env['DATAGRID_API_KEY'], // This is the default and can be omitted
            });

            const toolDef = await client.tools.retrieve('string');

            console.log(toolDef.description);
        - lang: Python
          source: |-
            import os
            from datagrid_ai import Datagrid

            client = Datagrid(
                api_key=os.environ.get("DATAGRID_API_KEY"),  # This is the default and can be omitted
            )
            tool_def = client.tools.retrieve(
                "string",
            )
            print(tool_def.description)
components:
  schemas:
    ToolName:
      type: string
      description: The unique identifier for a tool.
    ToolDef:
      type: object
      description: The `Tool` object represents a tool that can be used by agents.
      required:
        - object
        - name
        - label
        - description
      properties:
        object:
          type: string
          enum:
            - tool
          description: The object type, which is always `tool`.
        name:
          type: string
          description: The unique identifier name used to reference the tool.
        label:
          type: string
          description: The display name of the tool.
        description:
          type: string
          description: A detailed description of what the tool does.
    RateLimitError:
      type: object
      description: >-
        Returned when the rate limit is exceeded. Rate limits are enforced per
        teamspace, endpoint path, and HTTP method over a 60-second sliding
        window. Each endpoint may have its own limit — check the
        X-RateLimit-Limit response header for the effective value.
      required:
        - error
        - message
        - retryable
        - status_code
      properties:
        status_code:
          type: integer
          description: The HTTP status code (429).
        statusCode:
          type: integer
          deprecated: true
          description: Deprecated. Use status_code instead.
        error:
          type: string
          enum:
            - rate_limit_exceeded
          description: The error code identifying this as a rate limit error.
        message:
          type: string
          description: A human-readable error message.
        mitigation:
          type: string
          description: Suggested action to resolve the error.
        retryable:
          type: boolean
          description: Whether the request can be retried after a delay.
        details:
          type: object
          properties:
            reason:
              type: string
              description: A detailed explanation of why the rate limit was exceeded.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````