Skip to main content
Glama
deBilla

BigQuery MCP

by deBilla

get_code_asset

Read-onlyIdempotent

Retrieve the contents of a Colab notebook or saved query by name or ID, with notebook outputs stripped so you get only the logic.

Instructions

Return one Colab notebook or saved query's contents, by name or id.

Notebook outputs are stripped -- across 52 real notebooks they were 77% of the bytes, and none of the logic.

Args: asset: Display name (as shown in BigQuery Studio) or the asset id. environment: Which configured environment to read. Omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYes
environmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the bar is lower, yet the description still adds real value: it discloses that notebook outputs are stripped from the returned contents, with a quantified rationale. It does not mention pagination or size limits, but the return-content disclosure is genuinely useful.

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

Conciseness4/5

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

The core purpose is front-loaded in one sentence, then Args are clearly delimited. The aside about outputs being 77% of bytes across 52 notebooks is slightly chatty but it justifies the stripping behavior rather than padding.

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?

With no output schema, the description would need to explain the return value; it characterizes the return as notebook or saved-query contents with outputs stripped. Combined with the environment scoping, an agent has enough to call it correctly, though the returned structure and error cases are not described.

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 description coverage is 0%, so the description must carry parameter meaning, and it does: 'asset' is explained as either a display name (as shown in BigQuery Studio) or an asset id, and 'environment' as the configured environment to read, with the default-bypass behavior stated. Only the accepted format of environment identifiers is left implicit.

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?

Specific verb ('Return') plus precise resource ('one Colab notebook or saved query's contents') and retrieval keys ('by name or id'). An agent can immediately distinguish this single-item fetch from the sibling list_code_assets or find_code_assets_using_table without opening any schema.

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 the retrieval use case and clarifies that environment can be omitted for the default, but it never states when to prefer this over list_code_assets or find_code_assets_using_table, nor any prerequisites. Usage is inferable but not routed.

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