Skip to main content
Glama

supabase_get_edge_function

Read-onlyIdempotent

Retrieves file contents for an Edge Function in a Supabase project.

Bulk support: accepts project_ids for batched execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
project_idsNo
function_slugYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known. The description adds the key behavioral context of 'Bulk support' (batched execution), which is valuable. It does not, however, explain return format (file contents as string? metadata?) or error behavior when a function_slug is not found.

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?

The description is concise and front-loaded: the first line states the core purpose, and the second line adds important bulk support information. No fluff, every sentence earns its place.

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

Completeness3/5

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

For a simple read operation with three parameters and no output schema, the description covers the basics: what and batch capability. However, it lacks clarification on whether project_ids replaces project_id or is additional, what kind of file contents are returned (e.g., raw source, metadata), and potential size limits. Given the operation's simplicity, this is adequate but not complete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, but it only explains the 'bulk' aspect of the parameters. It does not elaborate on what project_id or function_slug represent beyond their names, nor does it clarify the relationship/usage of project_ids array, such as whether it is a shorthand for multiple projects or a full batch mode. The schema properties are bare, and the description adds minimal semantic value.

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 uses a specific verb ('Retrieves file contents') and identifies the resource ('Edge Function in a Supabase project'), clearly indicating the tool's read operation. However, it does not explicitly differentiate from sibling tools like supabase_list_edge_functions (which lists functions) or supabase_deploy_edge_function (which deploys), though 'file contents' implies a fetch of source code.

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

Usage Guidelines3/5

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

The description implies usage for retrieving file contents of an Edge Function, and the 'Bulk support' note hints at when to use project_ids for batch operations. It does not explicitly state when to use this tool over alternatives (e.g., when you need code vs. a list), but the verb 'Retrieves' and resource context provide clarity.

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.

TDQS

B3.4/5.0
Disambiguation4/5

The Supabase-prefixed tools are all distinct CRUD/lifecycle operations on different resource types (projects, branches, migrations, edge functions, etc.). The platform-level tools (authenticate, connect, marketplace, etc.) have clear non-overlapping purposes, though their names could momentarily be confused with Supabase-specific actions if an agent doesn't read descriptions.

Naming Consistency3/5

The 29 supabase_* tools follow a consistent 'supabase_<verb>_<noun>' pattern. However, the 6 non-prefixed platform tools (authenticate, connect, marketplace, report_bug, show_version, toolkit_info) break this convention and are inconsistent among themselves, creating a mixed naming style across the set.

Tool Count2/5

At 35 tools, the server is overweight. While the Supabase domain is broad (project management, database, edge functions, branches), the inclusion of 6 unrelated platform tools inflates the count. 29 domain tools still exceeds the comfortable 15-tool upper bound, making the surface feel bloated for agents to navigate.

Completeness3/5

The tool set covers core workflows: project lifecycle (create, get, list, pause, restore), branching (create, delete, list, merge, rebase, reset), SQL/migrations, edge functions, cost estimation, and advisors. However, there are notable gaps such as no delete_project, no update operations for projects or branches, and no deletion for edge functions, which leave lifecycle coverage incomplete.