Keystone Developers
Open Keystone
API reference

Edits API

Agent tools

2 endpoints.

GET/api/v1/edits/agent-tools

The capabilities and rules keystone-mcp-agents builds its tools from (its own key)

Authentication

X-Internal-Api-Key header.

Responses

200Successful Response
application/jsonSuccessResponse_dict_str__Any__
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredobject
metadataResponseMetadata | null
ResponseMetadata fields
FieldTypeDescription
paginationPaginationMetadata | null
PaginationMetadata fields
FieldTypeDescription
limitrequiredinteger
next_cursorstring | null
prev_cursorstring | null
has_morerequiredboolean
has_prevbooleandefault false
total_countinteger | null
status_countsobject | null
object | null fields

Map of string to integer

lifecycle_countsLifecycleCounts | null
LifecycleCounts fields
FieldTypeDescription
allintegerdefault 0
leadintegerdefault 0
prospectintegerdefault 0
customerintegerdefault 0
former_customerintegerdefault 0
classification_countsClassificationCounts | null
ClassificationCounts fields
FieldTypeDescription
signalobject
object fields

Nested object (not expanded)

touchobject
object fields

Nested object (not expanded)

stageobject
object fields

Nested object (not expanded)

metaResponseMeta | null
ResponseMeta fields
FieldTypeDescription
totalinteger | null
total_countinteger | null
pageinteger | null
per_pageinteger | null
  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service 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

NameInTypeDescription
toolrequiredpathstring

The tool's name, as the assistant knows it

Request bodyrequired

application/jsonAgentToolCallBody
FieldTypeDescription
argsobject
idempotency_keystring | null
asked_instring | null
context_untrustedbooleandefault false

Responses

200Successful Response
application/jsonSuccessResponse_Any_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredany
metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.