Skip to main content
Glama

discover_schema

Reveals all source and target fields side-by-side, proposes staging table definition and field mappings for integration setup.

Instructions

Phase 2: Discover ALL source fields and ServiceNow target fields side by side. Returns complete field lists (every source field is included — none are skipped), auto-suggested staging table definition, and field mapping proposals.

WORKFLOW:

  • If sn_table is not known yet, call suggest_target_table first and confirm with the user.

  • After calling this, STOP and present all fields + mappings to the user for Checkpoint 1 review.

  • For UNMAPPED fields (sn_target=null): highlight them and ask the user to either map them to an existing SN field or confirm they should land only in staging.

  • Show the upsert key (coalesce) fields so the user understands duplicate prevention.

  • Ask: (1) Are all source fields present? (2) Any mapping corrections? (3) Approve to continue?

  • Only call build_artifacts after explicit user approval.

IMPORTANT — target table changes: If the user changes the sn_table AFTER this has been called, call discover_schema AGAIN from scratch. Discard all prior suggested_mappings — target fields will be completely different.

GENERIC: platform can be any string — salesforce, jira, or any registered custom connector.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesSource platform — salesforce, jira, or any registered connector
object_nameYesSource object name (Salesforce: Account/Case/..., Jira: project key, etc.)
sn_tableYesServiceNow target table confirmed by the user (from suggest_target_table or explicit)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool returns all source fields (none skipped) and that it should be followed by user review. It warns about discarding prior suggestions if sn_table changes. However, it does not explicitly state whether the tool is read-only or if it has side effects, nor does it mention authorization needs or rate limits.

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 sections (purpose, workflow, important notes). It is front-loaded with the main purpose. While it is somewhat long, every sentence adds useful information for an AI agent.

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

Completeness5/5

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

Given the tool's complexity (3 parameters, no output schema, no annotations), the description is highly complete. It explains what the tool returns, the workflow to follow, how to handle edge cases (table changes, unmapped fields), and what actions to take after calling it.

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 coverage is 100%, so baseline is 3. The description adds meaning by explaining the workflow and dependencies: sn_table must come from suggest_target_table, platform can be any string, and object_name is the source object. This adds value beyond the schema descriptions.

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 clearly states the tool's purpose: 'Discover ALL source fields and ServiceNow target fields side by side.' It specifies it returns complete field lists, auto-suggested staging table, and field mapping proposals. This distinguishes it from sibling tools like suggest_target_table, which is referenced in the workflow.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: after sn_table is known (via suggest_target_table first if needed), and before build_artifacts. It also states when NOT to use it (if sn_table changes, call again from scratch). Alternatives are mentioned (suggest_target_table).

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/pinnintisagarSB/ServiceNow-Dev-MCP'

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