Skip to main content
Glama

studio_get

Read-onlyIdempotent

Every read of the page studio, chosen by what. editable_pages lists the pages of your app the studio can edit (id, name, kind, last update), without session_id; open one with studio_open_page. A section created with myapp_add is one of them: open it and write its first code with studio_edit_file. The others read in the open page's session: its files (file: without path, the four files and their sizes; with path, the file with line numbers, the first 400 lines without a range, a line longer than 8000 characters cut, version "start" the file as it was when the session opened), where a text appears (search, at most 50 matches), a manual (doc), the app's context (app: palette and fonts, logo, API key names, uploaded files, backend status and tables), the app's pages with their link and the rules to link to them (app_pages), the shop's products with the rules to show them (products). An argument that does not apply to what is refused.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "what": "<what>"
    },
    "name": "studio_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWith what app_pages: only the pages of this kind.
nameNoWith what app_pages: only the pages with this in their name.
pathNoOne of the page's four files, with what file or search.
sortNoBy price or by name, or position: the order of the shop section. Without it, the newest first; with a keyword, the best matches first unless sorted by price or name.
textNoWith what search: the text to find, exactly as written (case-sensitive; not a regular expression).
whatYeseditable_pages: the pages the studio can edit, without session_id. file: without path, the page's four files and their sizes; with path, that file (start_line, end_line, version). search: where a text appears (text, path). doc: a manual (topic, doc_section). app: the app's context. app_pages: the app's pages to link to (kind, name). products: the shop's products (on_sale, keyword, shop_section, sort, limit).
limitNoHow many products, 8 when not given.
topicNoWith what doc: gb_api (the gb object of the app runtime), services (external APIs, libraries, keys), supabase (shared backend tables), proxy (secret keys), manifest (the fields of manifest.json), gbcontent (the app's sections whose content a page can display, and how to read it).
keywordNoWords to search for in the products (title, text, tags, brand): those matching any of them, the best matches first.
on_saleNoWith what products: only the products on sale.
versionNoWith what file and a path. current (the default): the file as it is now; start: as it was when the session opened.
end_lineNoWith what file and a path: the last line to read.
session_idNoThe session_id studio_open_page returned: every what but editable_pages needs it.
start_lineNoWith what file and a path: the first line to read.
doc_sectionNoWith what doc and topic gb_api, which is long: only that part of it. page_url (reading or sharing the address of the page), geolocation (the user's position), native_bridge (the camera, the photo and video library, the app's timezone, gb.request), audio (long-form audio and live streams, gb.audio.*).
shop_sectionNoOnly the products of this shop section of the app, by its name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world semantics, so the description is not responsible for the safety profile. It goes beyond annotations with genuinely useful behavior: session_id is required for every mode except editable_pages, file reads default to the first 400 lines and truncate lines over 8000 characters, version "start" returns the file as it was when the session opened, search returns at most 50 matches, products default to 8 with newest-first ordering. What is missing is anything about how refusals and errors surface, which is a minor gap for a read tool.

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

Conciseness3/5

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

The opening clause front-loads the core idea, but the body is one dense run-on paragraph of semicolon-separated fragments that is hard to scan for the mode an agent needs. Every clause carries information, so nothing is truly wasted, but formatting the per-`what` behavior as a list would have made selection faster.

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

Completeness4/5

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

For a 16-parameter, seven-mode dispatching read tool with no output schema, the description does the necessary work: it says what each mode returns (page list with id/name/kind/last update, files with sizes or line numbers, match locations, app context contents, linkable pages, products). Missing are return-value edge cases such as empty results, which matters more here because no output schema exists.

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

Parameters3/5

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

Schema description coverage is 100% and 7 of 16 parameters are enums, so the schema already carries the bulk of parameter meaning. The description largely restates the schema's `what` enumeration in prose rather than adding new interpretation, though it does clarify cross-parameter interactions such as path being meaningful only with file/search and start_line/end_line only with file.

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

Purpose4/5

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

The description states a specific verb+resource (a read of the page studio) and enumerates the seven concrete things `what` can select, so an agent knows exactly what the tool returns for each mode. It also names sibling tools for adjacent actions (studio_open_page to open a page, studio_edit_file to write code, myapp_add to create a section). It does not disambiguate against the other read siblings (myapp_get_app, content_get) that appear on similar data, which keeps it below a 5.

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

Usage Guidelines4/5

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

Guidance is explicit and actionable: use editable_pages to discover pages and studio_open_page to open one, then come back here with session_id for everything else. It also states that an argument not applying to the chosen `what` is refused, which tells the agent to send only mode-relevant parameters. There are no stated exclusions against the other read-style siblings, so it stops short of a full when-not comparison.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.