Edits API
Agent tools
2 endpoints.
GET
/api/v1/edits/agent-toolsThe capabilities and rules keystone-mcp-agents builds its tools from (its own key)
Authentication
X-Internal-Api-Key header.
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
POST
/api/v1/edits/agent-tools/{tool}Call an agent tool, under its rule, for the run's own business
Authentication
Authorization: Bearer <token> with X-Internal-Api-Key header.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
toolrequired | path | string | The tool's name, as the assistant knows it |
Request bodyrequired
application/jsonAgentToolCallBody| Field | Type | Description |
|---|---|---|
args | object | |
idempotency_key | string | null | |
asked_in | string | null | |
context_untrusted | boolean | default false |
Responses
200Successful Responseapplication/jsonSuccessResponse_Any_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | any | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.