# MCP tools

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.

| Tool | What it's for | Changes data |
|---|---|---|
| [`lg_activity`](https://www.restolayer.com/docs/mcp/tools/lg_activity) | Measure usage over a window by model, key, provider or day: requests, errors, tokens, list cost and what was charged. | No |
| [`lg_agent_access`](https://www.restolayer.com/docs/mcp/tools/lg_agent_access) | See 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_trigger`](https://www.restolayer.com/docs/mcp/tools/lg_agents_add_trigger) | Add a trigger to an agent: a schedule (cron), an event or a webhook. | Yes |
| [`lg_agents_create`](https://www.restolayer.com/docs/mcp/tools/lg_agents_create) | Create 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_goal`](https://www.restolayer.com/docs/mcp/tools/lg_agents_draft_from_goal) | Draft an agent from a goal in plain language (a draft to review, not a live agent). | Yes |
| [`lg_agents_get`](https://www.restolayer.com/docs/mcp/tools/lg_agents_get) | Read one agent: its job, steps, triggers, permissions and version. | No |
| [`lg_agents_list`](https://www.restolayer.com/docs/mcp/tools/lg_agents_list) | List the organization's agents and what each one does. | No |
| [`lg_agents_publish`](https://www.restolayer.com/docs/mcp/tools/lg_agents_publish) | Publish an agent's draft as its new live version. | Yes |
| [`lg_agents_test_run`](https://www.restolayer.com/docs/mcp/tools/lg_agents_test_run) | Test-run an agent's draft once, as a dry run (nothing is sent or changed). | Yes |
| [`lg_agents_triggers`](https://www.restolayer.com/docs/mcp/tools/lg_agents_triggers) | List what starts an agent: schedules, events and webhooks. | No |
| [`lg_agents_update`](https://www.restolayer.com/docs/mcp/tools/lg_agents_update) | Edit an agent's draft (the live version keeps running until you publish). | Yes |
| [`lg_api`](https://www.restolayer.com/docs/mcp/tools/lg_api) | Call 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_get`](https://www.restolayer.com/docs/mcp/tools/lg_approvals_get) | Read one item waiting for approval: what would happen, why, and its evidence. | No |
| [`lg_approvals_list`](https://www.restolayer.com/docs/mcp/tools/lg_approvals_list) | List what's waiting for a person's approval. Deciding happens in the app, never here. | No |
| [`lg_billing_upgrade_link`](https://www.restolayer.com/docs/mcp/tools/lg_billing_upgrade_link) | Suggest 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_list`](https://www.restolayer.com/docs/mcp/tools/lg_broadcasts_list) | List where request logs are sent (OpenTelemetry, webhook, S3, Langfuse, Datadog, PostHog), with each one's ceiling, sampling and last error. | No |
| [`lg_broadcasts_update`](https://www.restolayer.com/docs/mcp/tools/lg_broadcasts_update) | Change a broadcast destination: disable it, or lower its sampling or monthly ceiling. Enabling or raising them is done by a person. | Yes |
| [`lg_credits`](https://www.restolayer.com/docs/mcp/tools/lg_credits) | Check the credit balance, today's top-up limit, and whether auto and agent top-ups are on, with their monthly limits. | No |
| [`lg_credits_invoicing`](https://www.restolayer.com/docs/mcp/tools/lg_credits_invoicing) | Check 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_quote`](https://www.restolayer.com/docs/mcp/tools/lg_credits_quote) | Get a top-up's price before starting it: the credits, the fee and the total charged, by card or bank. | No |
| [`lg_credits_topup`](https://www.restolayer.com/docs/mcp/tools/lg_credits_topup) | Add 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_list`](https://www.restolayer.com/docs/mcp/tools/lg_credits_topups_list) | List top-ups, newest first: credits, fee, total, status and the receipt link. | No |
| [`lg_evals_add`](https://www.restolayer.com/docs/mcp/tools/lg_evals_add) | Add an eval case to an agent: an input and what a good result looks like. | Yes |
| [`lg_evals_list`](https://www.restolayer.com/docs/mcp/tools/lg_evals_list) | List an agent's eval cases (its regression tests). | No |
| [`lg_evals_run`](https://www.restolayer.com/docs/mcp/tools/lg_evals_run) | Run an agent's eval suite as dry runs on its draft or live version and score them. | Yes |
| [`lg_gateway_keys_create`](https://www.restolayer.com/docs/mcp/tools/lg_gateway_keys_create) | Create 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_get`](https://www.restolayer.com/docs/mcp/tools/lg_gateway_keys_get) | Read one inference API key: its limits, spend, rate limit and status. | No |
| [`lg_gateway_keys_list`](https://www.restolayer.com/docs/mcp/tools/lg_gateway_keys_list) | List 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_rotate`](https://www.restolayer.com/docs/mcp/tools/lg_gateway_keys_rotate) | Rotate 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_update`](https://www.restolayer.com/docs/mcp/tools/lg_gateway_keys_update) | Change 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_get`](https://www.restolayer.com/docs/mcp/tools/lg_generations_get) | Read one request: its cost, tokens and timing, and its prompt and completion when logging was on. | No |
| [`lg_generations_list`](https://www.restolayer.com/docs/mcp/tools/lg_generations_list) | List requests, newest first, with model, provider, tokens, cost and timing. Filter by model, key, status or time. | No |
| [`lg_guardrails_effective`](https://www.restolayer.com/docs/mcp/tools/lg_guardrails_effective) | Read what one key's requests actually follow: its organization's, workspace's and own guardrails merged (the strictest wins). | No |
| [`lg_guardrails_get`](https://www.restolayer.com/docs/mcp/tools/lg_guardrails_get) | Read 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_set`](https://www.restolayer.com/docs/mcp/tools/lg_guardrails_set) | Change 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_home`](https://www.restolayer.com/docs/mcp/tools/lg_home) | Get a summary: approvals waiting for you, your recent agent runs and how many agents are live. | No |
| [`lg_integrations_list`](https://www.restolayer.com/docs/mcp/tools/lg_integrations_list) | List the accounts connected to the organization and the integrations available. | No |
| [`lg_kb_get`](https://www.restolayer.com/docs/mcp/tools/lg_kb_get) | Read one knowledge base section in full. | No |
| [`lg_kb_list`](https://www.restolayer.com/docs/mcp/tools/lg_kb_list) | Read the company's knowledge base: positioning, products, proof points, voice, audience and playbooks. | No |
| [`lg_logging_settings`](https://www.restolayer.com/docs/mcp/tools/lg_logging_settings) | Check whether prompts and completions are kept, and for how many days. Only an owner changes it, in the web app. | No |
| [`lg_models_endpoints`](https://www.restolayer.com/docs/mcp/tools/lg_models_endpoints) | Read one model's providers: price, context, limits, data policy and capabilities of each. | No |
| [`lg_models_list`](https://www.restolayer.com/docs/mcp/tools/lg_models_list) | List 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_list`](https://www.restolayer.com/docs/mcp/tools/lg_notifications_list) | Read your notifications in the app, newest first, with the unread count. | No |
| [`lg_presets_create`](https://www.restolayer.com/docs/mcp/tools/lg_presets_create) | Create a preset: a model, provider routing, a system prompt and parameters under a name. The organization's guardrails still apply. | Yes |
| [`lg_presets_get`](https://www.restolayer.com/docs/mcp/tools/lg_presets_get) | Read one preset's live version and its earlier versions. | No |
| [`lg_presets_list`](https://www.restolayer.com/docs/mcp/tools/lg_presets_list) | List the organization's presets: each one's live model, routing, system prompt and version, used as @preset/<name>. | No |
| [`lg_presets_update`](https://www.restolayer.com/docs/mcp/tools/lg_presets_update) | Change a preset; the result is saved as a new version and the earlier ones stay. | Yes |
| [`lg_private_endpoints_list`](https://www.restolayer.com/docs/mcp/tools/lg_private_endpoints_list) | List the organization's own model servers (private/<slug>): address, model, limits, capabilities and last probe. Keys are never shown. | No |
| [`lg_private_endpoints_probe`](https://www.restolayer.com/docs/mcp/tools/lg_private_endpoints_probe) | Check 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_update`](https://www.restolayer.com/docs/mcp/tools/lg_private_endpoints_update) | Change 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_propose`](https://www.restolayer.com/docs/mcp/tools/lg_propose) | Do something the way an agent would: reads now, sends and changes to existing records wait for a person's approval. | Yes |
| [`lg_provider_keys_list`](https://www.restolayer.com/docs/mcp/tools/lg_provider_keys_list) | List 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_update`](https://www.restolayer.com/docs/mcp/tools/lg_provider_keys_update) | Change 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_rankings`](https://www.restolayer.com/docs/mcp/tools/lg_rankings) | Read 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_out`](https://www.restolayer.com/docs/mcp/tools/lg_rankings_opt_out) | Change 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_settings`](https://www.restolayer.com/docs/mcp/tools/lg_rankings_settings) | Check whether your organization's traffic counts in the public rankings. | No |
| [`lg_routing_preview`](https://www.restolayer.com/docs/mcp/tools/lg_routing_preview) | Preview how a request would be routed, without sending it: providers considered, why, the order and the estimated cost. | Yes |
| [`lg_runs_cancel`](https://www.restolayer.com/docs/mcp/tools/lg_runs_cancel) | Cancel a running agent run. | Yes |
| [`lg_runs_get`](https://www.restolayer.com/docs/mcp/tools/lg_runs_get) | Read an agent run's trace: each step, its tool calls, cost and anything waiting for approval. | No |
| [`lg_runs_list`](https://www.restolayer.com/docs/mcp/tools/lg_runs_list) | List agent runs, newest first, by agent or status. | No |
| [`lg_runs_start`](https://www.restolayer.com/docs/mcp/tools/lg_runs_start) | Start an agent run now (dry_run: true to see what it would do without doing it). | Yes |
| [`lg_tax_ids_list`](https://www.restolayer.com/docs/mcp/tools/lg_tax_ids_list) | List the tax IDs printed on this account's invoices. | No |
| [`lg_telemetry`](https://www.restolayer.com/docs/mcp/tools/lg_telemetry) | Measure how agents are doing: runs, success rate, cost, approvals and time saved, by agent. | No |
| [`lg_templates_list`](https://www.restolayer.com/docs/mcp/tools/lg_templates_list) | Browse agent templates (built-in and your team's) to start an agent from. | No |
| [`lg_tools_list`](https://www.restolayer.com/docs/mcp/tools/lg_tools_list) | List the platform tools agents can use (for lg_propose), with what each reads or changes. | No |
| [`lg_whoami`](https://www.restolayer.com/docs/mcp/tools/lg_whoami) | Check who you're signed in as: your organization, role and scopes. Call it first to see what you may do. | No |
| [`lg_workspace_budget_get`](https://www.restolayer.com/docs/mcp/tools/lg_workspace_budget_get) | Read a workspace's monthly budget and what its keys spent this month. | No |
| [`lg_workspace_budget_set`](https://www.restolayer.com/docs/mcp/tools/lg_workspace_budget_set) | Change 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_list`](https://www.restolayer.com/docs/mcp/tools/lg_workspaces_list) | List the organization's workspaces (brands or business units). | No |

Connecting a client: [quickstarts](https://www.restolayer.com/docs/quickstart). What runs at once and what waits for a person:
[approvals and policy](https://www.restolayer.com/docs/approvals).
