Skip to main content
Response contract v1 is implemented in the Remote MCP source and Node.js 0.8.0 / Python 0.5.0 source releases. Production deployment and npm/PyPI publication are separate steps; these versions do not imply publication. Check your endpoint’s tools/list and outputSchema for the actual contract.
Parameters, plan availability, billing, and usage accounting for the Remote MCP tools. This reference describes Remote MCP over Streamable HTTP. Local proxies differ by package and version; check your server’s tools/list for the actual tools and schemas. Plan availability does not grant authorization: API-key scopes, user permissions, access to the target resource, and provider connections still apply. “Billable” means consuming a Tool Call from your plan allowance, not necessarily an additional monetary charge. Administration and connection diagnostics are non-billable. All 13 skill tools require Plus or above and consume one Tool Call only on success. Free users can discover skill names, descriptions, and input schemas. Execution is rejected with PLAN_UPGRADE_REQUIRED before accessing skill data. Signing in again does not resolve a plan restriction.

Response format

Updated Remote MCP, Python stdio, and Node stdio use the same envelope for every registered tool. Tool inventories depend on the endpoint and installed package release. Tool-specific fields below refer to values inside data.
  • content[0].text is a JSON string. Parsing it produces the same object as structuredContent.
  • response_version is 1; success indicates whether this call succeeded.
  • data contains the tool result, including original service error details when available.
  • error is null on success, or an object with code, message, and retryable on failure. MCP isError is true when success is false.
  • pagination is included when the tool supplies pagination fields. Original fields also remain in data. Preserve opaque cursors and resend the same filters.
  • Each tool advertises this envelope through outputSchema.
An empty tool listing is a successful response with an empty array, rather than a text message.
Read the envelope once, then access the tool result:
Migrate code that reads fields directly from the parsed root to data, and remove Markdown parsing. Search schemas are at data.tools[].inputSchema, health is at data.status, and provider output is at data.result. Execution decodes JSON strings in the known result slot; skill instructions and arbitrary nested text remain unchanged. This changes MCP tool responses, not the REST API response format. Errors without a supplied service code use TOOL_ERROR. retryable defaults to false unless supplied by the service; it does not authorize repeating an operation that may already have had an effect. SDK argument validation failures use INVALID_ARGUMENTS; unknown MCP tool names use UNKNOWN_TOOL. Transport/authentication failures can reject a request before a tool response exists.

Plans, billing, and Analytics

Normal provider tools are generally billable on success and provider errors, with exceptions such as internal errors. Pre-execution rejection such as a missing account selection is not counted as execution usage. Connection checks record one non-billable parent call regardless of the number of accounts, and retain individual probe outcomes in the diagnostic result. Unauthenticated requests, unknown MCP tools, and schema validation failures that do not reach execution are not counted as Tool Calls. Newly instrumented tools do not receive retroactive usage history.

Health Check

shanone_health_check

Check MCP connectivity, API-key authentication, and backend health. No provider credentials are tested. Returns structured health fields under data: status, service, version, timestamp, checks, and user when authenticated. Degraded results also include troubleshooting tips. Display-only banner and screen fields are no longer returned, reducing context usage. A degraded health result sets success: false and MCP isError: true. No parameters. Pass {}.

Tool Vendor

See MCP overview for version and rollout compatibility. For endpoints that have not been updated, follow their actual tools/list definitions.

shanone_search_tools

Search integration tools by keyword, ranked by relevance. The same response includes input schemas for top candidates, so a result with inputSchema can be executed without a separate schema request. Use shanone_list_service_tools for a complete service listing.
Search returns a JSON envelope whose data contains tools, total, query, service, offset, limit, has_more, and next_step instructions. Each tool contains name, service, description, and one of these fields: The combined inline schemas have a 24,000 UTF-8 byte budget. Results outside the requested top candidates, oversized schemas, and schemas that could not be retrieved use schemaRef. Required fields and constraints are never removed to fit the budget. This budget covers schemas, not the entire search response. Schemas reflect the calling user’s parameter policies. Reuse known schemas for subsequent calls in the same user context, refreshing them when they change. Authorization and parameter policies are still enforced at execution time. For example, if the search result for linear_list_teams includes inputSchema, execute it in the next call:
This reduces the usual search → schema retrieval → execution path to two calls: search with schema → execution. Authentication and prerequisite data lookups may still require additional calls.

shanone_list_service_tools

List tools for one service with pagination. Follow subsequent pages to retrieve the full list. Returns data.tools and the service listing metadata as JSON. Empty listings keep tools: []. Read pagination.has_more (also retained at data.has_more) and advance offset by limit for the next page.

shanone_get_tool_schema

Fetch the input JSON Schema when search returns schemaRef instead of inputSchema, or to refresh a known schema. This tool remains available; it is not required after every search. Returns the schema record under data, including name, description, and inputSchema. The schema is a JSON object, not a Markdown code block.

Connections

shanone_list_connections

List saved connections visible to the caller. Stored configuration is not proof that authentication still works.
Only IDs with supports_account_selection: true can be passed to execute_tool. Multiple-account selection currently supports Gmail. A legacy:<service> ID identifies a single connection for diagnostics; use it with check_connection, not execution account selection. Requires API-key scope integrations:read or all.

shanone_check_connection

Verify saved connections using read-only provider APIs. Omitting service checks all connected services, with pagination.
Use connection_id to check one account. A page contains at most 20 connections, with three probes running concurrently and a 30-second timeout per probe. Requires integrations:read and tasks:create, or all, plus permission for the probe tool. Results include verified, reauth_required, insufficient_permissions, permission_denied, rate_limited, temporarily_unavailable, verification_failed, unsupported, and not_connected. verified means the named read-only probe succeeded, not that every API operation or permission is available. Unsupported probes are not reported as successful.

Execution

shanone_execute_tool

Execute an integration tool. Inspect both the execution envelope and the provider result; completing a tool invocation does not by itself prove the provider operation succeeded. Check the outer success and error, then inspect data.result. Backend fields such as reason, connect_link, timing, and connection metadata are retained under data when provided. A provider result with success: false is also reported as an MCP error. Nested provider text is preserved; only JSON strings in the execution result slot are decoded.
Updated Remote MCP, Node.js, and Python implementations all advertise object arguments. Legacy JSON strings are accepted during migration, but new calls should not serialize the object. Arrays, null, scalars, and malformed JSON strings are rejected before provider execution. Reconnect after updating to refresh tools/list. For Gmail, obtain an account ID with list_connections and provide it on each call. Omitting it returns CONNECTION_SELECTION_REQUIRED. To use another account, change the ID on the next call. execution_context_id is no longer supported. For auth_required / auth_expired, follow the returned connection instructions. For confirmation_required, obtain confirmation and retry with "confirm": true in the same arguments. Usage is recorded under the executed tool’s name, without an additional execute_tool charge or count.

Skill Vendor

All 13 tools require Plus or above and are billable only on success. Skill ownership and resource-sharing permissions still apply.

shanone_list_skills

List saved skills, newest first. The query is optional; an empty query lists your saved skills with pagination. Returns the skill list and pagination metadata under data; an empty list remains data.skills: [].

shanone_get_skill

Read a skill’s name, summary, and full instructions. The agent follows the instructions itself; this call does not execute the workflow. Returns the skill record as data, including the complete instructions. Create and update operations also return their resulting skill records in this format.

shanone_create_skill

Create a reusable skill. All three fields must be non-empty. description and body are stored as summary and instructions.

shanone_update_skill

Update an existing skill. Only non-empty optional fields are changed; empty strings leave the existing values unchanged.

shanone_delete_skill

Permanently delete a skill. On success, data contains skill_id and deleted: true.

shanone_list_skill_files

List additional files bundled with a skill, including paths and sizes. The main instructions are read with get_skill. Returns data.skill_id, data.files, and data.count. Empty results retain an empty file array.

shanone_read_skill_file

Read a text file bundled with a skill. Binary files return a description instead of their contents; use the dashboard to view or download them. The JSON result retains file metadata. Binary content uses data.content: null and data.content_omitted: true, with a message directing you to the dashboard.

shanone_write_skill_file

Create or overwrite a UTF-8 text file. Missing parent folders are created automatically.

shanone_delete_skill_file

Delete one file bundled with a skill. On success, data contains skill_id, path, and deleted: true.

shanone_grep_skill

Search skill files with a regular expression. Results include file paths and line numbers; narrow the pattern if results are truncated.

shanone_create_skill_folder

Create an empty skill folder. This is optional before writing files because write_skill_file creates parent folders.

shanone_delete_skill_folder

Delete a folder and all files and subfolders inside it. This operation cannot be undone. On success, data contains skill_id, path, and deleted: true.

shanone_rename_skill_path

Rename or move a file or folder. Moving a folder moves its contents. An existing destination is rejected rather than overwritten.

Permission Vendor

Permission and parameter-policy management, except list_services, requires Root or an SA2 user delegated tool-permissions:ManageOthers. Delegated SA2 users cannot target Root users. All are non-billable.

shanone_list_services

List registered service names, display names, and tool counts. No administrator role is required. Returns data.services with tools_count per service, plus total, offset, limit, and has_more. The same page metadata is available in pagination.

shanone_list_user_tool_permissions

List a target user’s tool and service permission overrides.

shanone_set_user_tool_permission

Allow or deny one tool for a target user. A tool override takes priority over a service override or role default. Storage failures are reported as errors instead of successful permission changes. The same applies to service permission updates.

shanone_set_user_service_permission

Allow or deny the tools of a service for a target user, subject to individual tool overrides.

shanone_get_permission_summary

Summarize a target user’s enabled and disabled services and tools.

shanone_batch_set_user_permissions

Apply up to 500 service/tool permission operations in one call. Inspect each operation’s result; one failure does not abort the entire batch. If any operation fails, the outer success is false and MCP isError is true; already successful operations are not rolled back. Remote MCP reports error.code: "PARTIAL_FAILURE" and per-operation outcomes in data.operations, with data.updated_count. Node uses the same outer contract with per-operation outcomes in data.results; its operations argument is an array, not a JSON string.

Parameter Policies

shanone_get_tool_parameter_policy

Read the argument constraints configured for a target user’s tool. Tool access and allowed argument values are separate controls.

shanone_set_tool_parameter_policy

Set or replace one field’s argument policy. Constraints are applied by the server during execution.

shanone_delete_tool_parameter_policy

Remove the policy on one field. This does not change the tool’s allow/deny permission.

Errors and migration

shanone_create_execution_context, shanone_get_execution_context, and shanone_switch_connection have been removed. Refresh the client’s tool list and migrate to explicit connection IDs. The three Analytics tools are included in source; check tools/list for availability on your endpoint. Configure your connection.

Analytics

All three tools require Plus, Pro, Team, or Enterprise. API keys authenticate the caller. Analytics authorization uses the live subscription and user policy; no Analytics-specific key scope, permission migration, or key reissue is required. Plan access does not grant user permissions. The existing Root/SA2 policy engine evaluates user/group policies, permission boundaries, and organization controls. No roles or policies are automatically granted by this release. Organization and caller IDs are resolved server-side; arbitrary user/organization IDs are not accepted. Scope and permissions are checked again for each page. Knowing a log ID does not grant access. Each successful call consumes one Tool Call, including zero matching records and subsequent pages. Invalid inputs, plan/permission rejection, missing logs, expired cursors, quota rejection, and backend/read-budget failures are not charged. Reservations are canceled on execution failure. Each read is audited without copying the fetched log payloads into its own audit record. The current read is outside its own fixed as_of window and appears in later usage queries.

shanone_get_tool_usage

Returns totals, grouped rows, period, as_of, next_cursor, complete, read_consistency, coverage, and warnings. Totals cover the full matching period, not just the displayed page. Counts distinguish successful, failed, unknown-status, billable, and non-billable calls. Stored error and failed both count as failed; missing/unrecognized statuses remain unknown. statistics adds duration samples, average/min/max/p95 and error-category counts for the whole result and each group. Each row has a logs_query with the exact filters, and next_steps suggests a failure search when failures exist. Rows sort by count descending, then key ascending.

shanone_search_tool_logs

Returns logs, total_count, and the same period/pagination metadata. Logs sort by timestamp descending with log ID as the tie-breaker. Each row contains log_id, timestamp, tool/service, status, duration, billing flag, connection/session IDs, and an error type when available. Each row also includes execution (metadata summary and error guidance), billing (historical reason or explicit unknown), and a ready-to-use detail_query. No request/response bodies or free-text error messages are returned. Shared parameters for usage and search: Usage additionally accepts group_by (tool, service, day; default tool) and IANA timezone (default UTC) for day boundaries. Search additionally accepts status (all, success, failed, unknown), connection_id, and session_id. Different filters are AND-combined; tool_names matches any listed name.
Time ranges are start-inclusive/end-exclusive. A five-minute snapshot keeps subsequent pages consistent; every page is reauthorized and separately charged. A cursor is not a durable collection checkpoint. Recent logs may arrive late. Historical retention/instrumentation coverage is reported as unknown, not assumed complete. Missing legacy statuses remain unknown; missing legacy billing flags use the shared Analytics billing fallback. Reads are bounded to 50 database pages, 50,000 evaluated records, and a 10-second budget checked between database operations. If the full period cannot be read, READ_LIMIT_EXCEEDED is returned without partial totals or a charge. Narrow the period. complete: true means the bounded query was exhausted, not that all historical or recently ingested events are present.

shanone_get_tool_log

Payload values may be marked not_stored, unstructured_or_truncated, size_limit, or redacted; unavailable content is not reconstructed. Recognized credential keys, token patterns, and URLs are redacted. Structured payload output is limited to 16 KB per field. Existing provider-specific audit redaction still applies. Legacy IDs that are not directly addressable are returned as LOG_NOT_FOUND; this endpoint does not scan the entire table. Permission denials include reason; user-policy denials also include required_action to identify the missing action. Errors use MCP isError: true: PLAN_UPGRADE_REQUIRED, PERMISSION_DENIED, INVALID_ARGUMENTS, INVALID_SERVICE, TOOL_CALL_LIMIT_EXCEEDED, LOG_NOT_FOUND, INVALID_CURSOR, CURSOR_EXPIRED, READ_LIMIT_EXCEEDED, or ANALYTICS_UNAVAILABLE. The local proxies use the same server policy through POST /api/v1/analytics/usage, /logs/search, and /logs/detail.

Reading the response (version 2)

The outer MCP envelope uses response_version: 1. Successful Analytics data inside data includes response_version: 2, query_status: "success", and a short summary. This means the Analytics query succeeded, not that every recorded execution succeeded. A failed Analytics operation uses MCP isError: true and a query_status: "error" error body when it reaches the shared execution policy. Protocol/input validation may reject earlier. Existing fields (totals, rows, logs, status, duration_ms, billable) remain inside data. Logged execution failures do not make a successful Analytics query an MCP error. Illustrative response with abbreviated Analytics data:
execution.operation identifies the tool and recorded argument count. execution.result_metadata exposes only recorded argument count, input/output byte sizes, output type, truncation flag, and a top-level collection item count when recorded. The summary does not inspect payload text, claim the intended business outcome happened, or infer affected-record counts. A collection count describes a returned top-level list, not how many records an operation changed. Missing metadata is null. Error guidance comes from the stored classification (rate_limit, timeout, invalid_input, auth_error, internal_error, or unknown). It is a troubleshooting suggestion, not a verified provider-specific root cause or authorization to retry. Success gives error.state: not_applicable; unrecognized execution status gives unknown_execution_status. Metadata alone cannot distinguish an expired credential from every other authorization failure. Free-text error details remain behind include_payload permission and redaction. Usage statistics.duration_ms contains sample_count, missing_count, average, min, max, p95, and percentile_method: nearest_rank. Only finite nonnegative durations are included; absent/invalid values are not treated as zero. With no samples, numeric statistics are null. statistics.errors counts failures by supported classification, including unknown. Statistics cover the full matching result/group, not just the displayed page. rows[].logs_query preserves scope, billing and tool/service filters; day grouping uses the requested timezone and clamps the day to the original period. Following any suggested query still requires permissions and incurs the normal successful-call charge. Detail responses add timings, related_execution (session, retry origin, previous tool and parallel group), availability, and optional next_steps. These reflect stored fields only; they do not fetch other logs automatically. Payload availability is not_requested / permission not_checked by default, and requested / granted after explicit authorized inclusion. A suggested payload query does not imply the caller has that permission. Missing detail fields do not prove deletion or retention expiry; those causes are not distinguishable from missing instrumentation. With payload inclusion, request/response states describe what was actually available. Empty stored strings are not_stored. New execution records persist their billing decision reason: For older records, reason is null and reason_state is not_recorded; current pricing is never used to invent a historical reason. decision_source: legacy_default indicates the billing flag itself was absent and the shared legacy fallback was applied. Reasons and top-level collection counts become available for newly written records after the relevant execution service is deployed. Older records are not backfilled. The Analytics data version 2 update uses a separate snapshot binding. Adding the outer MCP version 1 envelope does not itself change the Analytics cursor format. Cursors created before the Analytics version 2 update must be replaced by a new query; existing authorization, read budgets, payload restrictions, and billing rules still apply.

OpenAI integration tools

OpenAI provides 10 integration tools through shanone_execute_tool: image generation/editing, background research with status/cancellation, transcription, speech generation, and background file analysis with status/cancellation. See the OpenAI tool reference for exact arguments, model constraints, API mappings, output fields and migration notes. These are integration tools, not additional MCP control tools.

shanone_prepare_file_upload

Prepare a built-in Shanone temporary upload. Parameters: filename, content_type, size_bytes (1–50,000,000), and sha256 (64 lowercase hex characters). Successful data contains attachment_id and upload.url/upload.fields. The client sends a multipart POST.

shanone_get_file_upload_status

Parameter: attachment_id. Verifies ownership, expiry, size and SHA-256; returns data.status: "ready" on completion. Does not extend expiry. Workflow, permissions, retention and compatibility.