generate_organization_schema
Create JSON-LD schema markup for organizations to enhance SEO and structured data visibility. Input organization details like name, URL, and description to generate compliant schema code.
Instructions
Generate an Organization JSON-LD schema for companies, non-profits, or other organizations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Organization name | |
| url | No | Official website URL | |
| logo | No | Logo image URL | |
| description | No | Brief description of the organization | |
| foundingDate | No | Founding date (YYYY-MM-DD) | |
| founder | No | Founder name | |
| sameAs | No | Array of social profile URLs |
Implementation Reference
- mcp-server/src/index.ts:666-698 (handler)Tool registration and handler for 'generate_organization_schema'.
server.tool( "generate_organization_schema", "Generate an Organization JSON-LD schema for companies, non-profits, or other organizations.", { name: z.string().describe("Organization name"), url: z.string().optional().describe("Official website URL"), logo: z.string().optional().describe("Logo image URL"), description: z .string() .optional() .describe("Brief description of the organization"), foundingDate: z .string() .optional() .describe("Founding date (YYYY-MM-DD)"), founder: z.string().optional().describe("Founder name"), sameAs: z .array(z.string()) .optional() .describe("Array of social profile URLs"), }, async (params) => { const schema = buildOrganizationSchema(params); return { content: [ { type: "text" as const, text: JSON.stringify(schema, null, 2), }, ], }; } ); - mcp-server/src/index.ts:300-322 (helper)Helper function that constructs the organization JSON-LD structure.
function buildOrganizationSchema(params: { name: string; url?: string; logo?: string; description?: string; foundingDate?: string; founder?: string; sameAs?: string[]; }): object { const fields: Record<string, unknown> = { name: params.name }; if (params.url) fields.url = params.url; if (params.logo) fields.logo = params.logo; if (params.description) fields.description = params.description; if (params.foundingDate) fields.foundingDate = params.foundingDate; if (params.founder) { fields.founder = { "@type": "Person", name: params.founder, }; } if (params.sameAs) fields.sameAs = params.sameAs; return buildJsonLd("Organization", fields); }