Skip to content

Docs

MCP tools

Markdown version

Every tool the server at https://manage.restolayer.com/mcp offers, with what it's for. Each has its own page with an example call. Read-only tools change nothing; the others say what they change.

ToolWhat it's forChanges data
lg_activityMeasure usage over a window by model, key, provider or day: requests, errors, tokens, list cost and what was charged.No
lg_agent_accessSee the MCP endpoint, the assistants that connected with what each may do (read, draft, propose), and whether only allowed ones may connect.No
lg_agents_add_triggerAdd a trigger to an agent: a schedule (cron), an event or a webhook.Yes
lg_agents_createCreate an agent as a draft, from a template or a spec. Nothing runs until it's published (lg_agents_publish).Yes
lg_agents_draft_from_goalDraft an agent from a goal in plain language (a draft to review, not a live agent).Yes
lg_agents_getRead one agent: its job, steps, triggers, permissions and version.No
lg_agents_listList the organization's agents and what each one does.No
lg_agents_publishPublish an agent's draft as its new live version.Yes
lg_agents_test_runTest-run an agent's draft once, as a dry run (nothing is sent or changed).Yes
lg_agents_triggersList what starts an agent: schedules, events and webhooks.No
lg_agents_updateEdit an agent's draft (the live version keeps running until you publish).Yes
lg_apiCall any Restolayer REST route (the spec is /v1/openapi.json) with your credentials. DELETE and merges need confirm: true.Yes (asks for confirm)
lg_approvals_getRead one item waiting for approval: what would happen, why, and its evidence.No
lg_approvals_listList what's waiting for a person's approval. Deciding happens in the app, never here.No
lg_billing_upgrade_linkSuggest a paid plan to the organization's owners: get a link for an owner to review and pay. Nothing is bought here.Yes
lg_broadcasts_listList where request logs are sent (OpenTelemetry, webhook, S3, Langfuse, Datadog, PostHog), with each one's ceiling, sampling and last error.No
lg_broadcasts_updateChange a broadcast destination: disable it, or lower its sampling or monthly ceiling. Enabling or raising them is done by a person.Yes
lg_creditsCheck the credit balance, today's top-up limit, and whether auto and agent top-ups are on, with their monthly limits.No
lg_credits_invoicingCheck whether this account can add credits on an invoice: its net days, the limit on unpaid invoices, what's owed and anything past due.No
lg_credits_quoteGet a top-up's price before starting it: the credits, the fee and the total charged, by card or bank.No
lg_credits_topupAdd credits from the saved card, only within the monthly limit an owner set for agent top-ups. Refused, with the reason, otherwise.Yes (asks for confirm)
lg_credits_topups_listList top-ups, newest first: credits, fee, total, status and the receipt link.No
lg_evals_addAdd an eval case to an agent: an input and what a good result looks like.Yes
lg_evals_listList an agent's eval cases (its regression tests).No
lg_evals_runRun an agent's eval suite as dry runs on its draft or live version and score them.Yes
lg_gateway_keys_createCreate an inference API key; the secret is in this answer only. As an agent you must set limit_total_usd, at most the organization's balance; it can never spend more.Yes
lg_gateway_keys_getRead one inference API key: its limits, spend, rate limit and status.No
lg_gateway_keys_listList the organization's inference API keys (sk-lg-v1-…) with each one's limits and spend (today, this month, in total). Secrets are never shown again.No
lg_gateway_keys_rotateRotate an inference key's secret: shown in this answer only; the old secret stops at once. The key keeps its limits and what it has spent.Yes
lg_gateway_keys_updateChange an inference key: rename it, lower a limit or the rate limit, or disable it. Raising or removing a limit and re-enabling are done by a person in the web app.Yes
lg_generations_getRead one request: its cost, tokens and timing, and its prompt and completion when logging was on.No
lg_generations_listList requests, newest first, with model, provider, tokens, cost and timing. Filter by model, key, status or time.No
lg_guardrails_effectiveRead what one key's requests actually follow: its organization's, workspace's and own guardrails merged (the strictest wins).No
lg_guardrails_getRead the guardrails on the organization, a workspace or a key: model and provider lists, data policy, EU-only, sensitive info, prompt injection.No
lg_guardrails_setChange guardrails on the organization, a workspace or a key. As an agent you may only make them stricter; loosening is done by a person in the web app.Yes
lg_homeGet a summary: approvals waiting for you, your recent agent runs and how many agents are live.No
lg_integrations_listList the accounts connected to the organization and the integrations available.No
lg_kb_getRead one knowledge base section in full.No
lg_kb_listRead the company's knowledge base: positioning, products, proof points, voice, audience and playbooks.No
lg_logging_settingsCheck whether prompts and completions are kept, and for how many days. Only an owner changes it, in the web app.No
lg_models_endpointsRead one model's providers: price, context, limits, data policy and capabilities of each.No
lg_models_listList the models offered with their lowest list price, context and price status; filter by maker, modality, price, context or parameter, and page.No
lg_notifications_listRead your notifications in the app, newest first, with the unread count.No
lg_presets_createCreate a preset: a model, provider routing, a system prompt and parameters under a name. The organization's guardrails still apply.Yes
lg_presets_getRead one preset's live version and its earlier versions.No
lg_presets_listList the organization's presets: each one's live model, routing, system prompt and version, used as @preset/<name>.No
lg_presets_updateChange a preset; the result is saved as a new version and the earlier ones stay.Yes
lg_private_endpoints_listList the organization's own model servers (private/<slug>): address, model, limits, capabilities and last probe. Keys are never shown.No
lg_private_endpoints_probeCheck a private endpoint now: GET its /models with its key (5 s), and store the result. A failing probe doesn't block routing.Yes
lg_private_endpoints_updateChange a private endpoint: rename it, set its limits or capabilities, or disable it. Its address, model or key, and re-enabling, are a person's in the web app.Yes
lg_proposeDo something the way an agent would: reads now, sends and changes to existing records wait for a person's approval.Yes
lg_provider_keys_listList the organization's own provider keys (BYOK): the provider, a label and the last 4 characters. They're used first for that provider's models, with no fee.No
lg_provider_keys_updateChange one of the organization's provider keys: rename or disable it. Adding, re-enabling and deleting one are done by a person in the web app.Yes
lg_rankingsRead the public rankings: the most used models, and the apps that send attribution headers, by tokens over a day, week or month.No
lg_rankings_opt_outChange whether to keep your organization's traffic out of the public rankings. As an agent you may opt out; opting back in is done by a person.Yes
lg_rankings_settingsCheck whether your organization's traffic counts in the public rankings.No
lg_routing_previewPreview how a request would be routed, without sending it: providers considered, why, the order and the estimated cost.Yes
lg_runs_cancelCancel a running agent run.Yes
lg_runs_getRead an agent run's trace: each step, its tool calls, cost and anything waiting for approval.No
lg_runs_listList agent runs, newest first, by agent or status.No
lg_runs_startStart an agent run now (dry_run: true to see what it would do without doing it).Yes
lg_tax_ids_listList the tax IDs printed on this account's invoices.No
lg_telemetryMeasure how agents are doing: runs, success rate, cost, approvals and time saved, by agent.No
lg_templates_listBrowse agent templates (built-in and your team's) to start an agent from.No
lg_tools_listList the platform tools agents can use (for lg_propose), with what each reads or changes.No
lg_whoamiCheck who you're signed in as: your organization, role and scopes. Call it first to see what you may do.No
lg_workspace_budget_getRead a workspace's monthly budget and what its keys spent this month.No
lg_workspace_budget_setChange a workspace's monthly budget (its keys stop at it). As an agent you may only lower it; raising or removing it is done by a person.Yes
lg_workspaces_listList the organization's workspaces (brands or business units).No

Connecting a client: quickstarts. What runs at once and what waits for a person: approvals and policy.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.