Reason Machines Tools API
The Tools API from Reason Machines — 5 operation(s) for tools.
The Tools API from Reason Machines — 5 operation(s) for tools.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/reasonmachines-com:reasonmachines-com-tools-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reason Tools API
version: 3.0.0
description: 'The Reason HTTP API. Drive cloud software-engineering agents: open sessions against your repositories, stream their work, and manage the secrets, skills, and automations they run with.
Authenticate with a Reason API key sent as a bearer token. New keys use `reason_`; legacy `ara_` keys remain accepted. Every resource is scoped to an organization; resolve your `org_id` once with `GET /v3/self`.'
servers:
- url: https://api.reasonmachines.com
security:
- reasonApiKey: []
tags:
- name: Tools
paths:
/v3/organizations/{orgId}/connections/{connectionId}/tools:
parameters:
- $ref: '#/components/parameters/orgId'
- name: connectionId
description: The exact connection id returned by the owning connection list, not a Device id.
in: path
required: true
schema:
type: string
format: uuid
get:
operationId: listConnectionTools
x-reason-open-world: true
x-reason-feature: direct_agent_capabilities
tags:
- Tools
summary: List a connected account's MCP tools
x-reason-mcp-description: Lists the current tools, schemas, schema digests and connection revision for one of the caller's connected accounts. Requires tools:read; provider read-only hints never grant execution permission.
description: 'List a connected account''s MCP tools with their schemas and provider annotations. Requires tools:read; an annotation does not grant execution authority.
Requires tools:read. Negotiates the approved connection with the caller''s own account boundary; returns schemas and provider annotations. An annotation does not grant execution authority.
Scope: `tools:read`'
responses:
'200':
description: Tool catalog
content:
application/json:
schema:
type: object
properties:
connectionId:
type: string
connectionRevision:
type: string
tools:
type: array
items:
type: object
required:
- connectionId
- connectionRevision
- tools
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- tools:read
/v3/organizations/{orgId}/connections/{connectionId}/tools/{toolName}:
parameters:
- $ref: '#/components/parameters/orgId'
- name: connectionId
description: The exact connection id returned by the owning connection list, not a Device id.
in: path
required: true
schema:
type: string
format: uuid
- name: toolName
description: Exact connected MCP tool name returned by listConnectionTools.
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 256
get:
operationId: describeConnectionTool
x-reason-open-world: true
x-reason-feature: direct_agent_capabilities
tags:
- Tools
summary: Describe one connected MCP tool
x-reason-mcp-description: Describes one connected tool's current input/output schema, schema digest and provider classification. Requires tools:read.
description: 'Requires tools:read. Returns the current input/output schema, schema digest and provider classification.
Scope: `tools:read`'
responses:
'200':
description: Tool schema
content:
application/json:
schema:
type: object
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- tools:read
/v3/organizations/{orgId}/tool-invocations:
parameters:
- $ref: '#/components/parameters/orgId'
post:
operationId: createToolInvocation
x-reason-destructive: true
x-reason-open-world: true
x-reason-feature: direct_agent_capabilities
tags:
- Tools
summary: Invoke a connected MCP tool without a Session
x-reason-mcp-description: Calls one connected tool without a Session or model and returns a durable receipt. Requires tools:execute. Identical idempotency keys and inputs replay the same invocation. Schema and connection revisions can be pinned; ambiguous outcomes never repeat automatically.
description: 'Invoke a connected MCP tool without a Session. Requires tools:execute and returns a durable receipt at once; no model or Session is started.
Requires tools:execute. Returns a durable receipt immediately. Retry the same idempotency key and identical input to observe the same invocation; use a new key for an intentional repetition. A completed provider error is replayable. Ambiguous means the provider may have acted and is never automatically repeated. No model or Session is started.
Scope: `tools:execute`'
responses:
'202':
description: Accepted or replayed invocation
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionId:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionRevision:
type: string
toolName:
type: string
schemaDigest:
type: string
status:
type: string
enum:
- accepted
- running
- completed
- failed
- cancelled
- ambiguous
result:
anyOf:
- {}
- type: 'null'
createdAt:
type: string
deadlineAt:
type: string
completedAt:
type:
- string
- 'null'
cancelRequestedAt:
type:
- string
- 'null'
required:
- id
- connectionId
- connectionRevision
- toolName
- schemaDigest
- status
- result
- createdAt
- deadlineAt
- completedAt
- cancelRequestedAt
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
connection_id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
description: Connected MCP account ID from listConnections.
tool_name:
type: string
minLength: 1
maxLength: 256
description: Exact provider tool name from listConnectionTools.
arguments:
type: object
description: Arguments matching the current provider input schema; maximum encoded size 64 KiB.
idempotency_key:
type: string
minLength: 1
maxLength: 200
description: Stable intent key. Identical retries observe the same call; intentional repetitions require a new key.
expected_schema_digest:
description: Schema digest returned by tool discovery; refuses a changed schema.
type: string
pattern: ^[a-f0-9]{64}$
deadline_at:
description: Absolute observation deadline; execution is capped at 60 seconds. Expiry after dispatch may be ambiguous.
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
expected_connection_revision:
description: Connection revision returned by tool discovery; refuses changed configuration or a replacement account.
type: string
pattern: ^[a-f0-9]{64}$
required:
- connection_id
- tool_name
- arguments
- idempotency_key
additionalProperties: false
security:
- reasonApiKey:
- tools:execute
/v3/organizations/{orgId}/tool-invocations/{id}:
parameters:
- $ref: '#/components/parameters/orgId'
- name: id
description: 'The record to act on: for a connection action, the connection''s record id as `listConnections` lists it (an MCP server''s id or a native installation''s id, matching `adapter`); for an MCP server, `id` from `listMcpServers`; for a tool invocation, its `id`.'
in: path
required: true
schema:
type: string
get:
operationId: getToolInvocation
x-reason-feature: direct_agent_capabilities
tags:
- Tools
summary: Read an invocation receipt
x-reason-mcp-description: Reads the caller's durable invocation receipt. Requires tools:read and the same credential identity. Completed includes provider tool errors; ambiguous means the provider may have acted. Reading never repeats work.
description: 'Requires tools:read and the same workspace, user and API key or OAuth grant that created the receipt. Reads never restart work.
Scope: `tools:read`'
responses:
'200':
description: Invocation receipt
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionId:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionRevision:
type: string
toolName:
type: string
schemaDigest:
type: string
status:
type: string
enum:
- accepted
- running
- completed
- failed
- cancelled
- ambiguous
result:
anyOf:
- {}
- type: 'null'
createdAt:
type: string
deadlineAt:
type: string
completedAt:
type:
- string
- 'null'
cancelRequestedAt:
type:
- string
- 'null'
required:
- id
- connectionId
- connectionRevision
- toolName
- schemaDigest
- status
- result
- createdAt
- deadlineAt
- completedAt
- cancelRequestedAt
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- tools:read
/v3/organizations/{orgId}/tool-invocations/{id}/cancel:
parameters:
- $ref: '#/components/parameters/orgId'
- name: id
description: 'The record to act on: for a connection action, the connection''s record id as `listConnections` lists it (an MCP server''s id or a native installation''s id, matching `adapter`); for an MCP server, `id` from `listMcpServers`; for a tool invocation, its `id`.'
in: path
required: true
schema:
type: string
post:
operationId: cancelToolInvocation
x-reason-destructive: true
x-reason-open-world: true
x-reason-feature: direct_agent_capabilities
tags:
- Tools
summary: Request cancellation of an invocation
parameters:
- in: header
name: Idempotency-Key
required: false
x-reason-mcp: false
schema:
type: string
minLength: 1
maxLength: 200
description: Required when a delegated job credential invokes this mutation. Use a distinct key for each intended effect. This identifies the attempt; it does not make a non-replayable mutation safe to repeat. Ordinary credentials retain the route's existing semantics.
x-reason-mcp-description: Requests cancellation of the caller's invocation. Requires tools:execute. Accepted work cancels before dispatch; running work may remain ambiguous because cancellation does not reverse an external effect.
description: 'Request cancellation of a tool invocation. Accepted work is cancelled before dispatch; running work records the intent and its outcome may stay ambiguous.
Requires tools:execute and the receipt''s owning credential. Accepted work is cancelled before dispatch. Running work records cancellation intent; its outcome may remain ambiguous. Cancellation never proves an external effect was reversed.
Scope: `tools:execute`'
responses:
'200':
description: Cancellation receipt
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionId:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
connectionRevision:
type: string
toolName:
type: string
schemaDigest:
type: string
status:
type: string
enum:
- accepted
- running
- completed
- failed
- cancelled
- ambiguous
result:
anyOf:
- {}
- type: 'null'
createdAt:
type: string
deadlineAt:
type: string
completedAt:
type:
- string
- 'null'
cancelRequestedAt:
type:
- string
- 'null'
required:
- id
- connectionId
- connectionRevision
- toolName
- schemaDigest
- status
- result
- createdAt
- deadlineAt
- completedAt
- cancelRequestedAt
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- tools:execute
components:
schemas:
Error:
type: object
properties:
error:
oneOf:
- type: string
- type: object
required:
- type
- message
properties:
type:
type: string
message:
type: string
request_id:
type:
- string
- 'null'
message:
type: string
required_scope:
type: string
description: The capability required when the request was denied for a missing scope.
parameters:
orgId:
name: orgId
in: path
required: true
description: Organization id or slug. Resolve it with `GET /v3/self`.
schema:
type: string
responses:
Unauthorized:
description: Missing, invalid, or expired key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: missing_bearer
message: Authorization required
Forbidden:
description: The key lacks the required scope or role.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: missing_scope
required_scope: sessions:read
RateLimited:
description: Too many requests. Retry after the number of seconds in the `Retry-After` response header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
minimum: 1
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
type: rate_limited
message: This API key exceeded its request-rate limit
securitySchemes:
loopWebhookKey:
type: http
scheme: bearer
description: A Loop's webhook key, returned once by the createReasonLoop or updateReasonLoop call that adds the webhook. It only delivers events to that Loop's webhook; every other operation rejects it.
loopWebhookSignature:
type: apiKey
in: header
name: X-Signature-256
description: 'An HMAC-SHA256 of the exact request body keyed with the Loop''s webhook key or its stored signing secret: hex in `X-Signature-256` (optionally `sha256=`-prefixed), or the sender''s own header (`X-Hub-Signature-256`, `Stripe-Signature`, `Webhook-Signature`, `Svix-Signature`, `Linear-Signature`, `Sentry-Hook-Signature`, `X-Shopify-Hmac-Sha256`).'
reasonMachineToken:
type: http
scheme: bearer
bearerFormat: rmt_<hex>
description: A Machine token from createMachineToken. It can only create enrollment tickets for its own Machine; every other operation rejects it.
reasonUserOAuth:
type: http
scheme: bearer
description: A workspace-bound human user OAuth grant with org:write scope. The user must be an organization owner/admin. API keys and browser sessions are not accepted.
reasonApiKey:
type: http
scheme: bearer
bearerFormat: 'reason_<hex> (legacy: ara_<hex>)'
description: 'Your Reason API key from Settings › API keys. New keys use `reason_`; legacy `ara_` keys remain accepted. Keys are capability-scoped: run, mcp:read, mcp:write, secrets:read, secrets:write, sessions:read, sessions:debug, devices:read, devices:write, devices:use, computers:read, computers:write, ssh:write, knowledge:read, memory:read, memory:write, skills:read, skills:write, pages:read, pages:write, repos:read, repos:write, reviews:read, reviews:write, deployment:read, analytics:read, org:read, org:write, attachments:read, attachments:write, guardrails:read, guardrails:write, network:read, network:write, automations:read, automations:write, agent_auth:read. devices:write, devices:use, computers:read, computers:write, ssh:write, network:read and network:write are opt-in, excluded from default keys. computers:read lists visible cloud and connected computers without waking them or granting execution access. devices:read discovers local Device targets; devices:use separately consents to local execution, so a discover-and-run local workflow needs both. devices:write manages enrollment and device grants; computers:write creates or deletes cloud computers; ssh:write manages retained SSH access. network:read reads the saved workspace network policy; network:write replaces custom allowed hosts and requires a current organization owner/admin. Legacy project PATCH requests containing network_allowed_hosts also require network:write plus their existing run scope and project management permission; saved project hosts do not affect current session egress. Only owners/admins can mint or manage keys with network:write; keys cannot grant themselves more authority. See /docs/network-policies for replacement semantics and runtime applicability. mcp:write manages MCP server configuration only; it does not authorize remote MCP-tool execution. sessions:read reads sessions, including the assistant, reasoning and tool activity in their events. sessions:debug is privileged: only for organization owners/admins, it expands session events to the full diagnostic projection (diagnostic event kinds, status text and raw event metadata).'