Skip to main content
GET
JavaScript
Read one tool from a tool set. This is the full definition, where List tools gives you the row.

What a tool holds

spec carries all five fields a tool is created with: state is STATE_AVAILABLE or STATE_OMITTED. An omitted tool reads back fine here; it is hidden from agents, not from you.

info.signature keys the tool

info holds createdBy and a signature, a hash of the tool’s definition. A synced tool set enforces uniqueness on (tool_set_id, signature), so the signature is what makes a re-sync idempotent: an unchanged tool keeps its signature and is not duplicated.
You rarely read it directly, but it is the field a sync conflict names when two tools collide.

External ID

Tools take an external ID scoped to their tool set, so pass the tool_... value or the external_id: form. A missing ID is a 404. Synced tools (MCP, OpenAPI) come in without one unless you set it; a hand-defined HTTP or bare tool is where you usually pick your own.

List tools

All tools in the set, filtered by name or state.

Omit a tool

Why a tool reads STATE_OMITTED.

Create a tool set

Where the five spec fields are set.

Approve a tool call

What requiresApproval triggers.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Workspace ID.

Example:

"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"

toolSetId
string
required

Tool set ID. Accepts the canonical ts_… form or the external_id: form.

Example:

"toolset_01HXKD2E5NQM3T9AYWCFNRMN74"

id
string
required

Tool ID. Accepts the canonical tool_… form or the external_id: form.

Example:

"tool_01HXKD2E5NQM3T9AYWCFWVYY9K"

Response

OK

metadata
object
required

Standard metadata for persistent, named resources (e.g., agents, tools, prompts)

spec
object
required
state
enum<string>
required
read-only

The current lifecycle state of the tool. Output only. Use the :omit and :restore actions to transition; tool set syncs may also update it.

Available options:
STATE_UNSPECIFIED,
STATE_AVAILABLE,
STATE_OMITTED,
STATE_ARCHIVED
info
object