Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Scripting API reference

get_script_api
Read-onlyIdempotent

Retrieve the live axross Python API as JSON to write scripts: call with an empty names list for an index, then request only the functions, classes, or types you need.

Instructions

Describe the axross Python API that scripts can call, as JSON from the live code. Use when: writing a script: names=[] gives the index (about 30 KB), then the names you need. Instead: read_script to see an existing script. Requires: --mcp-allow-scripts (stdio only); not in paranoid mode. Behavior: read-only; runs no code. An unknown name fails. Time limit: 15 s. Returns: {schema_version, module, legend, rules, errors, groups (names by topic), functions, classes, backend_protocol, types}; the index has functions and classes empty, names fills them for those names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_script_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesNoFunction, class or type names (from the index's groups), e.g. ['open_url', 'FileItem']; each comes with the types it uses. [] gives the index alone (start there); omit names only for the whole API, some 200 KB.

Output Schema

NameRequiredDescriptionDefault
rulesNo
typesYes
errorsNo
groupsYes
legendNowhat each field means
moduleYes
classesYes[] for the index
functionsYes[] for the index (names=[])
schema_versionYes
backend_protocolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, closed-world and non-destructive, so the safety profile is covered. The description goes beyond that by disclosing the --mcp-allow-scripts stdio-only requirement, the 15 s time limit, that no code is executed, and that an unknown name fails. Those are genuine additions, but the description does not say what an unknown-name error looks like or whether other errors are recoverable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, then organized into Use when / Instead / Requires / Behavior / Returns lines. Every clause carries information, and the two size figures are placed where they guide the very next call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has one optional parameter, no nesting, and an output schema, yet the description still sketches the return shape and explains the index-versus-names tradeoff. It covers auth gating, timeout, and error behavior, so nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds strategy the schema does not: empty names returns the index alone (~30 KB), omitting names returns the whole API (~200 KB). That size and sequencing guidance meaningfully changes how an agent should call the tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Describe the axross Python API that scripts can call') and clarifies the source ('as JSON from the live code'). It also names the adjacent sibling read_script and explains how it differs, so an agent can pick between them without inspecting schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when ('writing a script'), a concrete first step (names=[] for the ~30 KB index, then request the names needed), and an explicit alternative (read_script for an existing script). The exclusion 'not in paranoid mode' further narrows applicability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.