Skip to main content

tools

Creates, updates, deletes, gets or lists a tools resource.

Overview

Nametools
TypeResource
Idconfluent.sql.tools

Fields

The following fields are returned by SELECT queries:

Tool.

NameDatatypeDescription
namestringThe user provided name of the tool, unique within this environment. (example: linear-mcp-tool, pattern: [a-z0-9_]([-a-z0-9_]*[a-z0-9_])?)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (sql/v1) (example: sql/v1)
kindstringKind defines the object this REST resource represents. (Tool)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe spec of the Tool. A tool must reference either a connection (for MCP or A2A tools) or a function (for function-based tools), but not both.
statusobjectThe status of the Tool

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sqlv1_toolselectorganization_id, environment_id, database_name, tool_nameMake a request to read a Tool.
list_sqlv1_toolsselectorganization_id, environment_id, database_namepage_size, page_tokenRetrieve a sorted, filtered, paginated list of all Tools.
create_sqlv1_toolinsertorganization_id, environment_id, database_name, name, specMake a request to create a Tool.
delete_sqlv1_tooldeleteorganization_id, environment_id, database_name, tool_nameMake a request to delete a Tool.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
database_namestringThe name of the database.
environment_idstringThe unique identifier for the environment.
organization_idstring (uuid)The unique identifier for the organization.
tool_namestringThe user provided name of the Tool.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read a Tool.

SELECT
name,
api_version,
kind,
metadata,
spec,
status
FROM confluent.sql.tools
WHERE organization_id = '{{ organization_id }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND database_name = '{{ database_name }}' -- required
AND tool_name = '{{ tool_name }}' -- required
;

INSERT examples

Make a request to create a Tool.

INSERT INTO confluent.sql.tools (
name,
spec,
organization_id,
environment_id,
database_name
)
SELECT
'{{ name }}' /* required */,
'{{ spec }}' /* required */,
'{{ organization_id }}',
'{{ environment_id }}',
'{{ database_name }}'
RETURNING
name,
api_version,
kind,
metadata,
spec,
status
;

DELETE examples

Make a request to delete a Tool.

DELETE FROM confluent.sql.tools
WHERE organization_id = '{{ organization_id }}' --required
AND environment_id = '{{ environment_id }}' --required
AND database_name = '{{ database_name }}' --required
AND tool_name = '{{ tool_name }}' --required
;