Skip to main content
Glama
AnastasiaKWei

skyportal-mcp

generate_cone_search_code

Generates Python code to query ZTF detections around multiple sky coordinates, enabling catalog cross-matching and coverage checks.

Instructions

Generate code to perform ZTF cone searches at multiple positions.

This tool generates Python code that searches for ZTF detections within a radius of specified sky coordinates. Useful for cross-matching catalogs or checking if known positions have ZTF coverage.

Use Case: When you have a list of coordinates (e.g., from a catalog, TNS, or previous observations) and want to find all ZTF detections nearby.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coordinatesYesComma-separated "RA,Dec" pairs or JSON array of [RA, Dec]. RA/Dec in decimal degrees (J2000). Examples: - "150.0,2.5,151.2,3.1,152.5,2.8" (3 positions) - '[[150.0, 2.5], [151.2, 3.1]]' (JSON format)
radius_arcsecNoSearch radius in arcseconds (default: 2.0)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the burden of behavioral disclosure. It does state that the tool 'generates Python code' rather than executing the search, which is useful. However, it does not clarify any requirements, potential failures, rate limits, or that the code must be run separately. This is adequate but not detailed.

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 description is well-structured with a clear opening, an explanation, and a dedicated 'Use Case' section. It is not overly long, though the first sentence is somewhat repetitive with the tool name. Overall, it is efficient and easy to scan.

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?

Given the tool has only two parameters, one required, and rich schema descriptions, the contextual information is sufficient. The use case adds valuable guidance, and the presence of an output schema reduces the need to explain return values. The description could mention the format of the generated code, but this is not a major gap.

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 coverage is 100%, with detailed parameter descriptions and examples for both coordinates and radius. The description adds little beyond the schema, merely restating that the search is 'within a radius of specified sky coordinates.' Given the high schema coverage, a baseline of 3 is appropriate.

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?

The description opens with a specific verb and resource: 'Generate code to perform ZTF cone searches at multiple positions.' It clearly differentiates from sibling tools like search_sources_near_position by emphasizing code generation rather than execution. The mention of 'multiple positions' also adds scope specificity.

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?

The 'Use Case' section explicitly states when to use the tool: when you have a list of coordinates and want to find ZTF detections nearby. It provides practical context such as catalog cross-matching and coverage checks. However, it does not explicitly mention alternatives or when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnastasiaKWei/skyportal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server